/* ═══════════════════════════════════════════════════════
   TRUSSEE — Mockup Stylesheet
   Brand palette: Mediterranean teal, salmon, warm gold
═══════════════════════════════════════════════════════ */

/* ── 1. VARIABLES ─────────────────────────────────── */
:root {
  /* Brand colours (from 250109_palette idea_RGB.png, arrow marks primary) */
  --c-primary:    #2C666C;   /* R44 G102 B108 — dark teal, main CTA */
  --c-primary-dk: #1E4548;
  --c-primary-lt: #59A5B4;   /* R89  G165 B180 */
  --c-teal-3:     #77B9B0;   /* R119 G185 B176 */
  --c-teal-2:     #99CEC5;   /* R153 G206 B197 */
  --c-teal-1:     #D5E6E4;   /* R213 G230 B228 */
  --c-salmon:     #E57C7C;   /* R229 G124 B124 */
  --c-salmon-lt:  #F2CECE;
  --c-gold:       #F1CE90;   /* R241 G206 B144 */
  --c-gold-dk:    #C8960A;
  --c-gold-lt:    #FAF0D8;

  /* Neutrals */
  --c-bg:         #F0F9F8;
  --c-surface:    #FFFFFF;
  --c-border:     #C8DCDA;
  --c-border-lt:  #E2EFED;
  --c-text:       #1C3B3E;
  --c-text-2:     #4A7478;
  --c-text-3:     #7AACB0;
  --c-muted:      #B0CDD0;

  /* Shape */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 9999px;

  /* Elevation */
  --sh-sm: 0 1px 4px rgba(28,59,62,.09);
  --sh-md: 0 4px 20px rgba(28,59,62,.12);
  --sh-lg: 0 8px 40px rgba(28,59,62,.18);

  /* Layout */
  --nav-h:  60px;
  --bnav-h: 66px;

  /* Motion */
  --t: 160ms ease;
}

/* ── 2. RESET & BASE ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
button { font-family: inherit; }

/* ── 3. UTILITIES ─────────────────────────────────── */
.hidden   { display: none !important; }
.flex     { display: flex; }
.flex-col { flex-direction: column; }
.items-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-1 { gap: 4px; }  .gap-2 { gap: 8px; }
.gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.w-full { width: 100%; }
.text-sm  { font-size: .875rem; }
.text-xs  { font-size: .75rem; }
.text-center { text-align: center; }
.font-medium  { font-weight: 500; }
.font-semibold{ font-weight: 600; }
.font-bold    { font-weight: 700; }
.text-muted   { color: var(--c-text-3); }
.text-secondary { color: var(--c-text-2); }
.text-primary { color: var(--c-primary); }

/* ── 4. BUTTONS ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px 22px;
  border-radius: var(--r-full);
  font-size: .875rem; font-weight: 600; font-family: inherit;
  cursor: pointer; border: none; outline: none;
  transition: all var(--t); white-space: nowrap; user-select: none;
}
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dk); }
.btn-primary:disabled { opacity: .42; cursor: not-allowed; }

.btn-secondary {
  background: var(--c-surface); color: var(--c-primary);
  border: 1.5px solid var(--c-primary);
}
.btn-secondary:hover { background: var(--c-teal-1); }

.btn-ghost { background: transparent; color: var(--c-text-2); }
.btn-ghost:hover { background: var(--c-teal-1); color: var(--c-primary); }

.btn-danger { background: var(--c-salmon); color: #fff; }
.btn-danger:hover { background: #c96060; }

.btn-sm { padding: 6px 16px; font-size: .8125rem; }
.btn-xs { padding: 4px 10px; font-size: .75rem; }

/* Trust button variants */
.btn-trust     { background: var(--c-primary); color: #fff; }
.btn-trust:hover { background: var(--c-primary-dk); }
.btn-untrust   { background: var(--c-surface); color: var(--c-salmon); border: 1.5px solid var(--c-salmon-lt); }
.btn-untrust:hover { background: var(--c-salmon-lt); }
.btn-trustback { background: var(--c-gold-lt); color: var(--c-gold-dk); border: 1.5px solid var(--c-gold); }
.btn-trustback:hover { background: var(--c-gold); color: var(--c-text); }

/* ── 5. FORM ELEMENTS ─────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
label { font-size: .8125rem; font-weight: 500; color: var(--c-text-2); }

.input {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--c-border); border-radius: var(--r-md);
  font-size: .9375rem; font-family: inherit; color: var(--c-text);
  background: var(--c-surface); transition: border-color var(--t), box-shadow var(--t); outline: none;
}
.input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(44,102,108,.14); }
.input::placeholder { color: var(--c-muted); }

select.input {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A7478' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
textarea.input { resize: vertical; min-height: 90px; }

.checkbox-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .875rem; color: var(--c-text-2); cursor: pointer;
}
.checkbox-row input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--c-primary);
  flex-shrink: 0; margin-top: 2px; cursor: pointer;
}

.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-option {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border: 1.5px solid var(--c-border); border-radius: var(--r-md); cursor: pointer;
  transition: all var(--t);
}
.radio-option.selected { border-color: var(--c-primary); background: var(--c-teal-1); }
.radio-option input[type="radio"] { accent-color: var(--c-primary); }
.radio-label { font-size: .875rem; }
.radio-desc  { font-size: .8125rem; color: var(--c-text-3); }

input[type="range"] { width: 100%; accent-color: var(--c-primary); cursor: pointer; }

/* ── 6. TAGS / CHIPS ──────────────────────────────── */
.tag-input-wrap {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px 12px; border: 1.5px solid var(--c-border); border-radius: var(--r-md);
  min-height: 44px; background: var(--c-surface); align-items: center;
  transition: border-color var(--t);
}
.tag-input-wrap:focus-within { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(44,102,108,.14); }

.tag-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px 3px 10px; background: var(--c-teal-1);
  color: var(--c-primary); border-radius: var(--r-full);
  font-size: .8125rem; font-weight: 500;
}
.tag-chip .remove {
  cursor: pointer; width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; line-height: 1; color: var(--c-primary-lt);
  transition: background var(--t);
}
.tag-chip .remove:hover { background: rgba(44,102,108,.2); color: var(--c-primary); }

.tag-input-field {
  border: none; outline: none; font-size: .875rem;
  font-family: inherit; color: var(--c-text); background: transparent; min-width: 100px; flex: 1;
}

.suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.suggestion-chip {
  display: inline-flex; align-items: center;
  padding: 3px 10px; background: var(--c-surface);
  border: 1px solid var(--c-border); border-radius: var(--r-full);
  font-size: .8125rem; color: var(--c-text-2); cursor: pointer; transition: all var(--t);
}
.suggestion-chip:hover { background: var(--c-teal-1); border-color: var(--c-primary); color: var(--c-primary); }

/* ── 7. TABS ──────────────────────────────────────── */
.tabs {
  display: flex; gap: 0; border-bottom: 2px solid var(--c-border-lt);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 10px 18px; font-size: .875rem; font-weight: 500;
  color: var(--c-text-3); background: none; border: none; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all var(--t); white-space: nowrap; flex-shrink: 0;
}
.tab-btn:hover { color: var(--c-primary); }
.tab-btn.active { color: var(--c-primary); border-bottom-color: var(--c-primary); font-weight: 600; }

/* ── 8. CARDS ─────────────────────────────────────── */
.card {
  background: var(--c-surface); border-radius: var(--r-lg);
  border: 1px solid var(--c-border-lt); box-shadow: var(--sh-sm); padding: 20px;
}

/* ── 9. AVATAR ────────────────────────────────────── */
.avatar {
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0; overflow: hidden; border: 2px solid var(--c-surface);
}
.avatar-sm  { width: 36px;  height: 36px;  font-size: .8125rem; }
.avatar-md  { width: 48px;  height: 48px;  font-size: 1rem; }
.avatar-lg  { width: 72px;  height: 72px;  font-size: 1.375rem; }
.avatar-xl  { width: 96px;  height: 96px;  font-size: 1.75rem; }
.avatar-2xl { width: 120px; height: 120px; font-size: 2.25rem; }
.avatar.border-anon { border: 3px solid var(--c-teal-2); }
.avatar.border-busy { border: 3px solid var(--c-gold); }
.avatar.border-full { border: 3px solid var(--c-primary); }

/* ── 10. AUTH SCREENS ─────────────────────────────── */
.auth-screen {
  min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  background: linear-gradient(140deg, var(--c-teal-1) 0%, #e8f5f4 40%, #f0f9f8 100%);
}
.auth-card {
  width: 100%; max-width: 420px; background: var(--c-surface);
  border-radius: var(--r-xl); padding: 40px 32px; box-shadow: var(--sh-lg);
}
.auth-logo {
  line-height: 0; margin-bottom: 4px;
}
.auth-logo .logo-img { height: 95px; width: auto; }
.auth-tagline { font-size: .875rem; color: var(--c-text-3); margin-bottom: 28px; }
.auth-title   { font-size: 1.25rem; font-weight: 700; margin-bottom: 20px; }

.auth-tabs {
  display: flex; background: var(--c-bg); border-radius: var(--r-md);
  padding: 4px; gap: 4px; margin-bottom: 22px;
}
.auth-tab {
  flex: 1; padding: 8px; font-size: .875rem; font-weight: 500;
  color: var(--c-text-2); background: none; border: none;
  border-radius: calc(var(--r-md) - 2px); cursor: pointer; transition: all var(--t);
}
.auth-tab.active {
  background: var(--c-surface); color: var(--c-primary);
  font-weight: 600; box-shadow: var(--sh-sm);
}

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-footer { margin-top: 22px; text-align: center; font-size: .875rem; color: var(--c-text-2); }
.auth-footer a { font-weight: 600; }

.forgot-link {
  text-align: right; font-size: .8125rem; color: var(--c-text-2);
  text-decoration: underline; cursor: pointer;
}
.forgot-link:hover { color: var(--c-primary); }

/* Reset PW success */
.reset-success {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; text-align: center; padding: 12px 0;
}
.reset-success .icon { font-size: 3rem; }
.reset-success h3 { font-size: 1.125rem; }
.reset-success p { font-size: .9rem; color: var(--c-text-2); }

/* ── 11. ONBOARDING ───────────────────────────────── */
.onboarding-screen {
  min-height: 100dvh; display: flex; flex-direction: column;
  background: linear-gradient(140deg, var(--c-teal-1) 0%, var(--c-bg) 60%);
}
.onboarding-header {
  padding: 24px 20px 0; max-width: 720px; margin: 0 auto; width: 100%;
}
.ob-logo { line-height: 0; margin-bottom: 16px; }
.ob-logo .logo-img { height: 32px; width: auto; }
.progress-bar { display: flex; gap: 8px; margin-bottom: 6px; }
.progress-step {
  flex: 1; height: 5px; background: var(--c-border); border-radius: var(--r-full); transition: background .3s;
}
.progress-step.done   { background: var(--c-primary); }
.progress-step.active { background: var(--c-primary-lt); }
.progress-label { font-size: .8125rem; color: var(--c-text-2); }

.onboarding-body {
  flex: 1; display: flex; align-items: flex-start; justify-content: center;
  padding: 24px 16px 40px;
}
.onboarding-card {
  width: 100%; max-width: 720px; background: var(--c-surface);
  border-radius: var(--r-xl); padding: 36px 32px; box-shadow: var(--sh-lg);
}
.onboarding-card h2 { font-size: 1.375rem; margin-bottom: 4px; }
.onboarding-card .subtitle { font-size: .9375rem; color: var(--c-text-2); margin-bottom: 28px; }

.onboarding-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .onboarding-grid { grid-template-columns: 1fr; } }

.contact-card { border: 1.5px solid var(--c-border); border-radius: var(--r-lg); padding: 20px; }
.contact-card h4 { font-size: .9375rem; color: var(--c-text-2); margin-bottom: 14px; font-weight: 600; }

.onboarding-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--c-border-lt);
}

/* ── 12. TOP NAV ──────────────────────────────────── */
#top-nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  background: var(--c-surface); border-bottom: 1px solid var(--c-border-lt);
  display: flex; align-items: center; padding: 0 20px;
  z-index: 100; box-shadow: var(--sh-sm);
}
.nav-logo {
  line-height: 0; cursor: pointer; user-select: none;
}
.nav-logo .logo-img { height: 45px; width: auto; }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 4px; }
.nav-icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; background: none; border: none; color: var(--c-text-2);
  font-size: 1.125rem; transition: background var(--t);
}
.nav-icon-btn:hover { background: var(--c-teal-1); color: var(--c-primary); }
.nav-avatar-btn { cursor: pointer; position: relative; }

.nav-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--c-surface); border: 1px solid var(--c-border-lt);
  border-radius: var(--r-md); box-shadow: var(--sh-md);
  min-width: 190px; z-index: 200; overflow: hidden;
}
.nav-dropdown-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  font-size: .9rem; color: var(--c-text-2); cursor: pointer; transition: background var(--t);
}
.nav-dropdown-item:hover { background: var(--c-bg); color: var(--c-primary); }
.nav-dropdown-item.danger { color: var(--c-salmon); }
.nav-dropdown-item.danger:hover { background: #fff0f0; }
.nav-dropdown-divider { height: 1px; background: var(--c-border-lt); margin: 4px 0; }

/* ── 13. BOTTOM NAV ───────────────────────────────── */
#bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: var(--bnav-h);
  background: var(--c-surface); border-top: 1px solid var(--c-border-lt);
  display: flex; align-items: center; z-index: 100;
  box-shadow: 0 -2px 12px rgba(28,59,62,.07);
}
.bnav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; height: 100%;
  cursor: pointer; background: none; border: none;
  color: var(--c-text-3); font-size: .6875rem; font-weight: 500; font-family: inherit;
  transition: color var(--t);
}
.bnav-item .icon { font-size: 1.25rem; transition: transform var(--t); }
.bnav-item:hover { color: var(--c-primary); }
.bnav-item:hover .icon { transform: scale(1.1); }
.bnav-item.active { color: var(--c-primary); }
.bnav-item.active .icon { transform: scale(1.15); }

.bnav-plus {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--c-primary); color: #fff;
  font-size: 1.625rem; margin-bottom: 10px; flex-direction: row;
  box-shadow: 0 4px 14px rgba(44,102,108,.45); flex: none;
}
.bnav-plus:hover { background: var(--c-primary-dk); color: #fff; }

/* ── 14. APP SHELL & VIEWS ────────────────────────── */
#app { display: flex; flex-direction: column; min-height: 100dvh; }
#views { margin-top: var(--nav-h); margin-bottom: var(--bnav-h); flex: 1; }
.view { display: none; padding: 24px 16px; max-width: 960px; margin: 0 auto; }
.view.active { display: block; }

/* ── 15. HOME FEED ────────────────────────────────── */
.feed-layout {
  display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start;
}
@media (max-width: 720px) { .feed-layout { grid-template-columns: 1fr; } .feed-sidebar { display: none; } }

.feed-sidebar-card {
  background: var(--c-surface); border-radius: var(--r-lg); padding: 20px;
  border: 1px solid var(--c-border-lt); box-shadow: var(--sh-sm);
}
.feed-sidebar-card h3 { font-size: 1rem; margin-bottom: 10px; }
.feed-sidebar-card p  { font-size: .875rem; color: var(--c-text-2); margin-bottom: 14px; }

.post-card {
  background: var(--c-surface); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--c-border-lt); box-shadow: var(--sh-sm); margin-bottom: 16px;
}
.post-kind-strip { height: 5px; }
.kind-need-you { background: var(--c-primary); }
.kind-need-me  { background: var(--c-gold); }
.kind-fyi      { background: var(--c-teal-2); }

.post-body { padding: 16px; }
.post-author { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.post-author-info h4 { font-size: .9375rem; font-weight: 600; cursor: pointer; }
.post-author-info h4:hover { color: var(--c-primary); text-decoration: underline; }
.post-author-info span { font-size: .8125rem; color: var(--c-text-3); }

.post-hashtags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.hashtag { font-size: .8125rem; color: var(--c-primary-lt); font-weight: 500; }

.post-content { font-size: .9375rem; line-height: 1.55; margin-bottom: 12px; }
.post-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

.post-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--r-full); font-size: .75rem; font-weight: 600;
}
.badge-need-you { background: var(--c-teal-1); color: var(--c-primary); }
.badge-need-me  { background: var(--c-gold-lt); color: var(--c-gold-dk); }
.badge-fyi      { background: var(--c-border-lt); color: var(--c-text-2); }
.badge-location { background: var(--c-bg); color: var(--c-text-2); border: 1px solid var(--c-border-lt); }

.post-actions {
  display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--c-border-lt);
}

/* ── 16. PROFILE PAGE ─────────────────────────────── */
.profile-cover {
  width: 100%; height: 185px;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-lt) 100%);
  border-radius: 0 0 var(--r-lg) var(--r-lg); position: relative; overflow: hidden;
}
.profile-cover-wave {
  position: absolute; bottom: 0; left: 0; right: 0;
}
.profile-cover-edit {
  position: absolute; bottom: 12px; right: 16px;
}

.profile-header { padding: 0 20px; position: relative; }
.profile-avatar-row {
  margin-top: -52px; margin-bottom: 10px;
  display: flex; align-items: flex-end; justify-content: space-between;
}
.profile-avatar-stack { position: relative; display: inline-block; }
.profile-avatar-edit {
  position: absolute; bottom: 0; right: 0; width: 30px; height: 30px;
  background: var(--c-primary); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; cursor: pointer; border: 2px solid var(--c-surface);
  box-shadow: var(--sh-sm);
}
.profile-name { font-size: 1.375rem; font-weight: 700; margin-bottom: 2px; }
.profile-profession { font-size: .9rem; color: var(--c-text-2); margin-bottom: 6px; }
.profile-bio { font-size: .875rem; color: var(--c-text-2); margin-bottom: 10px; }

.degree-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; background: var(--c-teal-1); color: var(--c-primary);
  border-radius: var(--r-full); font-size: .8125rem; font-weight: 700; margin-bottom: 12px;
}

/* Trust graph */
.trust-graph-section {
  padding: 16px 20px; background: var(--c-bg);
  border-top: 1px solid var(--c-border-lt); border-bottom: 1px solid var(--c-border-lt);
  margin: 0 -0px;
}
.trust-graph-section h4 { font-size: .875rem; color: var(--c-text-2); margin-bottom: 10px; }
.trust-graph-svg-wrap { background: var(--c-surface); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--c-border-lt); }

/* Trust table */
.trust-search-row { display: flex; gap: 10px; margin-bottom: 14px; align-items: center; }
.filter-section {
  background: var(--c-bg); border-radius: var(--r-md); padding: 14px 16px;
  margin-bottom: 14px; border: 1px solid var(--c-border-lt);
}
.filter-section h5 { font-size: .8125rem; font-weight: 600; color: var(--c-text-2); margin-bottom: 10px; }
.filter-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.filter-row:last-child { margin-bottom: 0; }
.filter-label { font-size: .8125rem; color: var(--c-text-2); width: 110px; flex-shrink: 0; }
.filter-value { font-size: .8125rem; color: var(--c-primary); font-weight: 600; width: 30px; flex-shrink: 0; }

.trust-table { width: 100%; border-collapse: collapse; }
.trust-table th {
  text-align: left; font-size: .8125rem; color: var(--c-text-3); font-weight: 500;
  padding: 8px 12px; border-bottom: 1.5px solid var(--c-border-lt);
}
.trust-table td { padding: 12px; border-bottom: 1px solid var(--c-border-lt); font-size: .9rem; vertical-align: middle; }
.trust-table tr:last-child td { border-bottom: none; }
.trust-table tbody tr:hover td { background: var(--c-bg); }

.user-cell { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.user-cell:hover .user-name { color: var(--c-primary); text-decoration: underline; }
.user-name { font-weight: 500; font-size: .9375rem; }
.user-city { font-size: .8125rem; color: var(--c-text-3); }

.skills-cell { display: flex; flex-wrap: wrap; gap: 4px; }
.skill-tag {
  background: var(--c-teal-1); color: var(--c-primary);
  padding: 2px 8px; border-radius: var(--r-full); font-size: .75rem; font-weight: 500;
}

/* About tab */
.about-row { display: flex; align-items: flex-start; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--c-border-lt); }
.about-row:last-child { border-bottom: none; }
.about-label { font-size: .8125rem; font-weight: 500; color: var(--c-text-3); width: 120px; flex-shrink: 0; padding-top: 4px; }
.about-value { flex: 1; font-size: .9375rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.edit-field { flex: 1; width: 100%; }

.edit-hint { font-size: .8125rem; color: var(--c-text-3); margin-top: 6px; }

/* Posts grid */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }

/* ── 17. TRUST CIRCLES PAGE ───────────────────────── */
.tc-header { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.tc-header h1 { font-size: 1.5rem; }
.tc-header p { font-size: .875rem; color: var(--c-text-2); }

/* People You May Know cards */
.pymk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.pymk-card {
  background: var(--c-surface); border: 1px solid var(--c-border-lt); border-radius: var(--r-lg);
  padding: 20px; display: flex; flex-direction: column; align-items: center;
  text-align: center; box-shadow: var(--sh-sm);
}
.pymk-card h4 { font-size: 1rem; margin-top: 12px; margin-bottom: 2px; }
.pymk-card .meta { font-size: .8125rem; color: var(--c-text-2); margin-bottom: 10px; }
.pymk-card .skills { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-bottom: 14px; }

/* ── 18. SEARCH PAGE ──────────────────────────────── */
.search-header { margin-bottom: 20px; }
.search-header h1 { font-size: 1.375rem; text-align: right; margin-bottom: 12px; }
.search-bar-row { display: flex; gap: 10px; margin-bottom: 10px; }
.search-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.search-tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px;
  background: var(--c-primary); color: #fff; border-radius: var(--r-full); font-size: .8125rem; font-weight: 500;
}

.result-card {
  background: var(--c-surface); border: 1px solid var(--c-border-lt); border-radius: var(--r-lg);
  padding: 16px; display: flex; align-items: center; gap: 14px;
  margin-bottom: 12px; box-shadow: var(--sh-sm); transition: box-shadow var(--t);
}
.result-card:hover { box-shadow: var(--sh-md); }
.result-info { flex: 1; }
.result-name { font-weight: 600; font-size: 1rem; cursor: pointer; }
.result-name:hover { color: var(--c-primary); text-decoration: underline; }
.result-meta { font-size: .8125rem; color: var(--c-text-2); margin-top: 2px; }
.result-skills { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }

.results-count { font-size: .875rem; color: var(--c-text-2); margin-bottom: 12px; }

/* ── 19. MODALS ───────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20,45,48,.45);
  backdrop-filter: blur(5px);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 500; padding: 0;
}
@media (min-width: 600px) {
  .modal-overlay { align-items: center; padding: 24px; }
}
.modal-box {
  background: var(--c-surface); border-radius: var(--r-xl) var(--r-xl) 0 0;
  width: 100%; max-width: 520px; max-height: 92dvh; overflow-y: auto;
  padding: 24px 24px 40px;
}
@media (min-width: 600px) { .modal-box { border-radius: var(--r-xl); padding: 32px; } }

.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.modal-title  { font-size: 1.125rem; font-weight: 700; }
.modal-close  {
  width: 36px; height: 36px; border-radius: 50%; background: var(--c-bg);
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: var(--c-text-2); transition: background var(--t);
}
.modal-close:hover { background: var(--c-teal-1); color: var(--c-primary); }
.modal-form { display: flex; flex-direction: column; gap: 16px; }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--c-border-lt);
}
.modal-body { font-size: .9375rem; color: var(--c-text-2); margin-bottom: 8px; }
.modal-user-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.modal-user-row h3 { font-size: 1rem; font-weight: 600; }
.modal-user-row p  { font-size: .875rem; color: var(--c-text-2); }

/* ── 20. TOASTS ───────────────────────────────────── */
#toast-container {
  position: fixed; top: calc(var(--nav-h) + 10px); left: 50%;
  transform: translateX(-50%); z-index: 1000;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 20px;
  border-radius: var(--r-full); font-size: .875rem; font-weight: 500;
  box-shadow: var(--sh-md); white-space: nowrap; pointer-events: auto;
  animation: toast-in .25s ease, toast-out .3s ease 1.7s forwards;
}
.toast-success { background: var(--c-primary); color: #fff; }
.toast-error   { background: var(--c-salmon); color: #fff; }

@keyframes toast-in  { from { opacity:0; transform: translateY(-10px) scale(.94); } to { opacity:1; transform: translateY(0) scale(1); } }
@keyframes toast-out { from { opacity:1; transform: translateY(0) scale(1); } to { opacity:0; transform: translateY(-10px) scale(.94); } }

/* ── 21. COMING SOON ──────────────────────────────── */
.coming-soon {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 52vh; text-align: center; gap: 14px;
}
.coming-soon .icon { font-size: 3.5rem; }
.coming-soon h2 { font-size: 1.5rem; }
.coming-soon p { color: var(--c-text-2); max-width: 300px; font-size: .9375rem; }

/* ── 22. PAGINATION ───────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 20px 0; }
.page-btn {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  border: 1.5px solid var(--c-border); background: var(--c-surface);
  color: var(--c-text-2); cursor: pointer; font-size: .875rem; font-family: inherit;
  display: flex; align-items: center; justify-content: center; transition: all var(--t);
}
.page-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.page-btn.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── 23. SECTION HEADERS ──────────────────────────── */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title  { font-size: 1.125rem; font-weight: 700; }

/* ── 24. PROFILE CONTENT AREA ─────────────────────── */
.profile-tabs-section { padding: 0; }
.profile-tab-content { padding: 20px 0; }

/* ── 25. SCROLLBAR ────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-teal-2); }

/* ── 26. RESPONSIVE ───────────────────────────────── */
@media (max-width: 600px) {
  .auth-card { padding: 28px 20px; }
  .onboarding-card { padding: 24px 18px; }
  .profile-cover { height: 145px; }
  .trust-table .col-skills, .trust-table .col-interests { display: none; }
  .view { padding: 16px 12px; }
}

/* ── 27. DIVIDER ──────────────────────────────────── */
.divider { text-align: center; color: var(--c-text-3); font-size: .8125rem; position: relative; }

/* ── 28. STATUS COLOURS ───────────────────────────── */
.dot-green  { width: 8px; height: 8px; border-radius: 50%; background: #4caf50; flex-shrink: 0; }
.dot-yellow { width: 8px; height: 8px; border-radius: 50%; background: var(--c-gold); flex-shrink: 0; }
