/* =============================================================
   TRUSTHUB — SUNSET BOULEVARD DESIGN SYSTEM
   Aesthetic: Creative, energetic, vibrant — warm and human.
   Palette: Warm Sand bg · Deep Teal primary · Burnt Orange accent
   Type: Lora (display) + Nunito (body)
   ============================================================= */

/* --- Design Tokens -------------------------------- */
:root {
  --navy:        #264653;
  --navy-mid:    #2d5a6a;
  --navy-light:  #3a7a90;
  --navy-dark:   #1e3a47;
  --sand:        #e9c46a;
  --gold:        #e76f51;
  --gold-dark:   #c8563c;
  --gold-light:  #f4a261;
  --cream:       #fef6ee;
  --cream-dark:  #fdeedd;
  --white:       #ffffff;
  --ink:         #1a1a1a;
  --ink-soft:    #374151;
  --ink-muted:   #6b7280;
  --ink-faint:   #9ca3af;
  --border:      #e8d5c0;
  --border-dark: #d4b896;

  /* Compatibility aliases for inline styles in views */
  --brand-blue:  var(--gold);
  --dark-navy:   var(--navy);
  --gray-100:    #fdf0e6;
  --gray-200:    #f9e4d0;
  --gray-300:    #efd2b8;
  --gray-400:    #d4b08a;
  --gray-500:    #b08060;
  --gray-600:    #8a6040;
  --gray-700:    #5a3e2a;
  --gray-800:    #3a2518;
  --gray-900:    #1f1208;

  --shadow-sm:   0 1px 3px rgba(38,70,83,0.08);
  --shadow-md:   0 4px 16px rgba(38,70,83,0.12);
  --shadow-lg:   0 8px 32px rgba(38,70,83,0.18);
  --shadow-gold: 0 4px 20px rgba(231,111,81,0.3);

  --radius-sm:   3px;
  --radius-md:   6px;
  --radius-lg:   10px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --dur:         0.2s;
}

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

/* --- Base ----------------------------------------- */
html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  background: var(--navy);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--gold-dark); }

/* --- Typography ----------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: 'Lora', Georgia, serif;
  line-height: 1.2;
  color: var(--gold);
  font-weight: 400;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; font-weight: 700; font-family: 'Nunito', sans-serif; color: var(--navy); }

p { line-height: 1.7; color: var(--ink-soft); }

/* --- Layout --------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-content {
  flex: 1;
  padding: 2.5rem 0;
}

/* --- Navigation ----------------------------------- */
.navbar {
  background: var(--navy-dark);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  height: 64px;
}

.navbar-brand {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.5rem;
  color: var(--white) !important;
  text-decoration: none;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.navbar-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.navbar-links a:hover { color: var(--gold); }
.navbar-links a.nav-active { color: var(--gold); }

.navbar-auth {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.btn-nav-login {
  color: rgba(255,255,255,0.75);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.btn-nav-login:hover { color: var(--white); }

.btn-nav-signup {
  background: var(--gold);
  color: var(--navy) !important;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-decoration: none;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.btn-nav-signup:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
}

.navbar-user-name {
  font-weight: 600;
  color: var(--white);
}

.navbar-logout {
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  transition: color var(--dur) var(--ease);
}

.navbar-logout:hover { color: rgba(255,255,255,0.9); }

.navbar-sep {
  color: rgba(255,255,255,0.2);
  font-size: 0.75rem;
}

/* --- Buttons -------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.btn:focus { outline: 3px solid rgba(38,70,83,0.25); outline-offset: 2px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  font-weight: 700;
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.btn-danger {
  background: transparent;
  color: #dc2626;
  border-color: #dc2626;
}
.btn-danger:hover {
  background: #dc2626;
  color: var(--white);
}

.btn-sm  { padding: 0.4rem 0.875rem; font-size: 0.75rem; }
.btn-lg  { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; display: flex; }

/* --- Flash Messages -------------------------------- */
.flash-container {
  background: var(--navy);
  padding: 0.625rem 1.5rem;
}
.flash {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.flash-success {
  background: rgba(212,168,67,0.15);
  color: var(--gold);
  border: 1px solid rgba(212,168,67,0.3);
}
.flash-error {
  background: rgba(220,38,38,0.12);
  color: #fca5a5;
  border: 1px solid rgba(220,38,38,0.3);
}

/* --- Forms ---------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
}
.form-group label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-control,
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}
.form-control:focus,
.form-input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(38,70,83,0.1);
}
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23264653' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
  cursor: pointer;
}
textarea.form-control { resize: vertical; min-height: 120px; line-height: 1.6; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
small, .help-text {
  font-size: 0.75rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* --- Verified Badge -------------------------------- */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Nunito', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  vertical-align: middle;
  line-height: 1.4;
}
.verified-badge svg {
  width: 10px;
  height: 10px;
  stroke-width: 3px;
}


/* --- Founder Badge -------------------------------- */
.founder-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--sand);
  color: var(--navy);
  font-family: 'Nunito', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  vertical-align: middle;
  line-height: 1.4;
  margin-left: 3px;
}
.founder-badge svg {
  width: 10px;
  height: 10px;
  fill: var(--navy);
}

/* --- Admin Badge ---------------------------------- */
.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--navy-mid);
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  vertical-align: middle;
  line-height: 1.4;
  margin-left: 3px;
}
.admin-badge svg {
  width: 10px;
  height: 10px;
  fill: var(--white);
}

/* --- Mod Badge ------------------------------------ */
.mod-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--navy-light);
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  vertical-align: middle;
  line-height: 1.4;
  margin-left: 3px;
}
.mod-badge svg {
  width: 10px;
  height: 10px;
  fill: var(--white);
}

/* --- Badges --------------------------------------- */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-family: 'Nunito', sans-serif;
}
.badge-navy    { background: var(--navy); color: var(--white); }
.badge-gold    { background: var(--gold); color: var(--navy); }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-error   { background: #fee2e2; color: #991b1b; }

/* Status text badges (used in verify page inline) */
.badge-success-text { color: #065f46; font-weight: 700; }
.badge-error-text   { color: #991b1b; font-weight: 700; }
.badge-pending-text { color: #92400e; font-weight: 700; }

/* --- Auth Pages ----------------------------------- */
.auth-form-wrapper {
  max-width: 440px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.auth-form-wrapper h1 { font-size: 2rem; margin-bottom: 0.25rem; }
.auth-form-wrapper .subtitle {
  color: var(--ink-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  box-sizing: border-box;
}
.btn-google:hover {
  background: var(--cream);
  border-color: var(--border-dark);
  color: var(--ink);
}
.btn-google svg { width: 20px; height: 20px; flex-shrink: 0; }

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--ink-faint);
  font-size: 0.875rem;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--ink-muted);
  font-size: 0.875rem;
}
.auth-footer a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
}

/* --- Dashboard ------------------------------------ */
.dashboard { padding: 0; }
.dashboard-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}
.welcome-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.dashboard-header h1 {
  font-size: 2.25rem;
  color: var(--navy);
  margin: 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.dashboard-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.dashboard-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.dashboard-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--gold);
}
.dashboard-card:hover::after { transform: scaleX(1); }

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(38,70,83,0.07);
  color: var(--navy);
}
.marketplace-icon, .jobs-icon, .messages-icon, .profile-icon {
  background: rgba(38,70,83,0.07);
  color: var(--navy);
}
.card-icon svg { width: 24px; height: 24px; stroke-width: 1.5px; }

.dashboard-card h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.dashboard-card p {
  color: var(--ink-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.card-actions {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}
.card-actions a {
  flex: 1;
  min-width: 100px;
  text-align: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: all var(--dur) var(--ease);
  letter-spacing: 0.3px;
}
.card-actions a.btn-primary,
.card-actions .btn-primary {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}
.card-actions a.btn-primary:hover,
.card-actions .btn-primary:hover {
  background: var(--navy-mid); border-color: var(--navy-mid);
}
.card-actions a.btn-secondary,
.card-actions .btn-secondary {
  background: transparent; color: var(--navy); border-color: var(--navy);
}
.card-actions a.btn-secondary:hover,
.card-actions .btn-secondary:hover {
  background: var(--navy); color: var(--white);
}

.verification-reminder {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  border: none;
}
.reminder-content h3 {
  font-family: 'Lora', Georgia, serif;
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.reminder-content p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.5rem;
}
.verification-reminder .btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.verification-reminder .btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

/* --- Listings ------------------------------------- */
.listings-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}
.search-filter-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.search-filter-bar .form-control { flex: 1; min-width: 200px; }

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.listing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--dur) var(--ease);
}
.listing-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--gold);
}
.listing-card .listing-image {
  width: 100%; height: 200px; object-fit: cover;
}
.listing-image-placeholder {
  width: 100%; height: 200px;
  background: var(--cream-dark);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-muted); font-size: 0.875rem;
}
.listing-card-body { padding: 1.25rem; }
.listing-card-body h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}
.listing-card-body h3 a { color: var(--navy); }
.listing-card-body h3 a:hover { color: var(--gold-dark); }

/* Legacy listing card structure from index.ejs */
.listing-card .listing-title { font-weight: 700; font-size: 1rem; color: var(--navy); margin-bottom: 0.375rem; }
.listing-card .listing-price {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.375rem;
  color: var(--navy);
  margin-bottom: 0.625rem;
}
.listing-card .listing-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.listing-card .listing-location {
  font-size: 0.75rem;
  color: var(--ink-muted);
}
.category-badge {
  background: var(--navy);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: 'Nunito', sans-serif;
}
.poster-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 0.5rem;
}
.poster-info a { color: var(--ink-muted); font-weight: 600; }
.poster-info a:hover { color: var(--navy); }

/* --- Listing Detail ------------------------------- */
.listing-detail {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}
.gallery-main {
  width: 100%; aspect-ratio: 4/3;
  background: var(--cream-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main.no-image {
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-muted); font-size: 0.875rem;
}
.gallery-thumbnails { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.thumbnail {
  width: 72px; height: 72px; object-fit: cover;
  border-radius: var(--radius-md); cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.thumbnail.active, .thumbnail:hover { border-color: var(--gold); }

.listing-info {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.listing-info h1 { font-size: 1.75rem; margin-bottom: 1rem; }
.listing-header-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.price {
  font-family: 'Lora', Georgia, serif;
  font-size: 2rem;
  color: var(--navy);
}
.listing-details {
  display: flex; flex-direction: column; gap: 0.5rem;
  margin: 1.5rem 0; padding: 1rem 1.25rem;
  background: var(--cream); border-radius: var(--radius-md);
}
.detail-row { display: flex; gap: 0.75rem; font-size: 0.875rem; }
.detail-row .label { font-weight: 700; color: var(--navy); min-width: 75px; }
.detail-row .value { color: var(--ink-soft); }

.description h3 {
  font-family: 'Nunito', sans-serif; font-weight: 700;
  font-size: 1rem; margin-bottom: 0.5rem;
}
.description p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.7; }

.poster-section h3 {
  font-family: 'Nunito', sans-serif; font-weight: 700;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--ink-muted); margin-bottom: 0.75rem;
}
.poster-card {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1.25rem; margin-bottom: 1.25rem;
}
.poster-name {
  font-weight: 700; color: var(--navy);
  display: flex; align-items: center; gap: 0.5rem;
}
.poster-username, .poster-username-small {
  color: var(--ink-muted); font-size: 0.875rem; margin: 0.25rem 0;
}
.poster-bio {
  font-size: 0.875rem; color: var(--ink-soft);
  margin: 0.75rem 0; line-height: 1.5;
}
.actions { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.back-link {
  color: var(--navy); font-size: 0.875rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.25rem;
  margin-bottom: 0.75rem; opacity: 0.7;
  transition: opacity var(--dur) var(--ease);
}
.back-link:hover { opacity: 1; color: var(--navy); }

/* --- Jobs ----------------------------------------- */
.jobs-container { max-width: 900px; margin: 0 auto; }
.jobs-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
}
.jobs-header h1 { font-size: 2.25rem; margin: 0; }
.jobs-header .subtitle { color: var(--ink-muted); margin-top: 0.25rem; font-size: 0.875rem; }
.jobs-header .btn { align-self: flex-start; margin-top: 0.25rem; }
.jobs-filters { margin-bottom: 2rem; }
.search-form { display: flex; gap: 0.75rem; }
.search-form input { flex: 1; }

.jobs-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }

.job-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--dur) var(--ease);
}
.job-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--navy);
  border-left-color: var(--gold);
  transform: translateX(3px);
}
.job-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; margin-bottom: 0.375rem;
}
.job-header h3 {
  font-family: 'Nunito', sans-serif; font-size: 1.125rem; font-weight: 700; margin: 0;
}
.job-header h3 a, .job-header a { color: var(--navy); }
.job-header h3 a:hover { color: var(--gold-dark); }
.job-type-badge {
  background: var(--navy); color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-size: 0.65rem; font-weight: 700;
  padding: 0.25rem 0.75rem; border-radius: var(--radius-full);
  text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap;
}
.company {
  font-size: 0.9rem; font-weight: 700; color: var(--navy);
  margin: 0.25rem 0 0.625rem;
}
.job-meta {
  display: flex; gap: 1.5rem; color: var(--ink-muted);
  font-size: 0.875rem; margin: 0.5rem 0; flex-wrap: wrap;
}
.salary { font-weight: 600; }
.location { }
.job-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--gray-100);
}
.posted-by { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--ink-muted); }
.user-link {
  color: var(--navy); font-weight: 700; text-decoration: none;
  display: flex; align-items: center; gap: 0.25rem;
}
.user-link:hover { color: var(--gold-dark); }

/* Job Detail */
.job-detail-container { max-width: 1000px; margin: 0 auto; }
.job-detail {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 2rem; align-items: start;
}
.job-content {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
}
.job-content h1 { font-size: 1.875rem; margin-bottom: 0.75rem; }
.job-content .job-company { margin-bottom: 0; }
.job-content .job-company h2 { font-size: 1.25rem; margin: 0; }

.job-meta-details {
  display: flex; flex-direction: column; gap: 0.75rem;
  margin: 1.5rem 0; padding: 1.25rem;
  background: var(--cream); border-radius: var(--radius-md);
}
.meta-item { display: flex; gap: 0.75rem; font-size: 0.875rem; }
.meta-item .label { font-weight: 700; color: var(--navy); min-width: 80px; }
.meta-item .value { color: var(--ink-soft); }

.job-description { margin: 1.5rem 0; }
.job-description h3 {
  font-family: 'Nunito', sans-serif; font-weight: 700;
  font-size: 1rem; margin-bottom: 0.75rem;
}
.job-actions {
  display: flex; gap: 1rem; margin-top: 1.5rem;
  padding-top: 1.5rem; border-top: 1px solid var(--border); flex-wrap: wrap;
}

.job-sidebar .poster-card {
  background: var(--white); border: 1px solid var(--border);
  border-top: 4px solid var(--gold); border-radius: var(--radius-lg);
  padding: 1.5rem; margin-bottom: 1rem;
}
.job-sidebar .poster-card h3 {
  font-family: 'Nunito', sans-serif; font-weight: 700;
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--ink-muted); margin-bottom: 1rem;
}
.poster-info { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 1rem; }
.poster-info .poster-username, .poster-info a {
  font-size: 1rem; font-weight: 700; color: var(--navy);
  text-decoration: none; display: flex; align-items: center; gap: 0.5rem;
}
.owner-actions {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
}
.owner-actions h3 {
  font-family: 'Nunito', sans-serif; font-weight: 700;
  font-size: 0.875rem; margin-bottom: 1rem; color: var(--navy);
}

/* --- Messages ------------------------------------- */
.messages-container { max-width: 800px; margin: 0 auto; }
.messages-header {
  margin-bottom: 2rem; padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}
.messages-header h1 { font-size: 2.25rem; margin-bottom: 0.25rem; }
.messages-header .subtitle { color: var(--ink-muted); font-size: 0.875rem; }

.conversations-list { display: flex; flex-direction: column; gap: 0.5rem; }

.conversation-card {
  display: flex; flex-direction: column;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-left: 4px solid transparent;
  border-radius: var(--radius-md);
  background: var(--white);
  text-decoration: none;
  transition: all var(--dur) var(--ease);
}
.conversation-card:hover {
  border-left-color: var(--gold);
  box-shadow: var(--shadow-sm);
  transform: translateX(2px);
}
.conversation-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; width: 100%; gap: 1rem;
}
.conversation-card .user-info h3 {
  font-family: 'Nunito', sans-serif; font-size: 1rem;
  font-weight: 700; color: var(--navy); margin-bottom: 0.1rem;
}
.conversation-card .user-info { flex: 1; }
.conversation-card .username { font-size: 0.75rem; color: var(--ink-muted); }
.conversation-meta { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.unread-badge {
  background: var(--navy); color: var(--white);
  padding: 0.15rem 0.5rem; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 700;
}
.last-message-time { font-size: 0.75rem; color: var(--ink-faint); margin-top: 0.5rem; }

/* Message Thread */
.message-thread-container {
  max-width: 900px; margin: 0 auto;
  display: flex; flex-direction: column;
  min-height: calc(100vh - 180px);
}
.thread-header {
  padding-bottom: 1.5rem; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem;
}
.thread-header h1 {
  font-size: 1.875rem; display: flex; align-items: center;
  gap: 0.5rem; margin-bottom: 0.25rem;
}
.thread-header .username { color: var(--ink-muted); font-size: 0.875rem; }
.thread-body { flex: 1; overflow-y: auto; margin-bottom: 1.5rem; }
.messages-list { display: flex; flex-direction: column; gap: 0.75rem; }
.message-item { display: flex; }
.message-item.sent { justify-content: flex-end; }
.message-item.received { justify-content: flex-start; }
.message-bubble {
  max-width: 65%; padding: 0.875rem 1.125rem;
  border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--border);
}
.message-item.sent .message-bubble {
  background: var(--navy); color: var(--white);
  border-color: var(--navy);
  border-bottom-right-radius: var(--radius-sm);
}
.message-item.received .message-bubble { border-bottom-left-radius: var(--radius-sm); }
.message-subject { font-weight: 700; margin: 0 0 0.375rem; font-size: 0.875rem; }
.message-body {
  font-size: 0.875rem; line-height: 1.6;
  word-wrap: break-word; white-space: pre-wrap; margin: 0;
}
.message-time { font-size: 0.7rem; margin-top: 0.375rem; color: var(--ink-faint); }
.message-item.sent .message-time { color: rgba(255,255,255,0.45); }
.empty-messages {
  text-align: center; padding: 2rem; color: var(--ink-muted);
}
.thread-footer { padding-top: 1.25rem; border-top: 2px solid var(--border); }
.message-form { display: flex; flex-direction: column; gap: 0.75rem; }
.form-actions { display: flex; gap: 0.75rem; }

/* --- Profile Edit --------------------------------- */
.profile-edit-container { max-width: 600px; margin: 0 auto; }
.profile-header {
  margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 2px solid var(--border);
}
.profile-header h1 { font-size: 2.25rem; margin-bottom: 0.25rem; }
.profile-header .subtitle { color: var(--ink-muted); font-size: 0.875rem; }

.profile-form-wrapper {
  background: var(--white); border: 1px solid var(--border);
  border-top: 4px solid var(--gold); border-radius: var(--radius-lg); padding: 2rem;
}
.profile-form { display: flex; flex-direction: column; gap: 1.5rem; }

.photo-upload {
  border: 2px dashed var(--border-dark); border-radius: var(--radius-lg);
  padding: 1.5rem; text-align: center; background: var(--cream);
}
.photo-upload .form-group { margin-bottom: 0; }
.photo-upload label {
  display: block; margin-bottom: 1rem;
  font-size: 0.8125rem; font-weight: 700;
  color: var(--navy); letter-spacing: 0.5px; text-transform: uppercase;
}
.photo-upload-area { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.current-photo {
  width: 160px; height: 160px; border-radius: var(--radius-lg);
  object-fit: cover; border: 3px solid var(--border);
}
.no-photo-placeholder {
  width: 160px; height: 160px; background: var(--cream-dark);
  border-radius: var(--radius-lg); border: 2px dashed var(--border-dark);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-muted); font-weight: 600; font-size: 0.875rem;
}
.upload-control { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.file-input { display: none; }
.file-label { cursor: pointer; }

.form-section-info { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.form-section-info h3 {
  font-family: 'Nunito', sans-serif; font-weight: 700;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--ink-muted); margin: 0 0 1.25rem;
}
.info-item { margin-bottom: 1.25rem; }
.info-item label {
  display: block; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--ink-muted); font-weight: 700; margin-bottom: 0.25rem;
}
.info-value { font-size: 1rem; color: var(--navy); font-weight: 500; }
.info-item small { display: block; margin-top: 0.25rem; }

.badge-verified-label {
  background: var(--gold); color: var(--navy);
  padding: 0.2rem 0.7rem; border-radius: var(--radius-full);
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-pending-label {
  background: #fef3c7; color: #92400e;
  padding: 0.2rem 0.7rem; border-radius: var(--radius-full);
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
}

/* Reuse badge- classes from profile.ejs inline styles */
.badge-verified { background: var(--gold); color: var(--navy); padding: 0.25rem 0.75rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; }
.badge-pending  { background: #fef3c7; color: #92400e; padding: 0.25rem 0.75rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; }

/* --- User Public Profile -------------------------- */
.user-profile-container { max-width: 1000px; margin: 0 auto; }
.profile-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem; margin-bottom: 2rem;
}
.profile-card .profile-header { display: flex; gap: 2rem; align-items: flex-start; }
.profile-photo {
  width: 160px; height: 160px; border-radius: var(--radius-lg);
  object-fit: cover; border: 3px solid var(--border); flex-shrink: 0;
}
.profile-photo-placeholder {
  width: 160px; height: 160px; background: var(--navy);
  border-radius: var(--radius-lg); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.initials { font-family: 'Lora', Georgia, serif; font-size: 3.5rem; color: var(--gold); }
.user-info h1 {
  font-size: 1.875rem; color: var(--navy); margin-bottom: 0.25rem;
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.user-info .username { color: var(--ink-muted); font-size: 1rem; margin: 0.25rem 0; }
.user-info .member-since { color: var(--ink-faint); font-size: 0.875rem; margin: 0.25rem 0 0.75rem; }
.user-info .bio { color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.6; margin: 0.75rem 0; }
.user-info .btn { margin-top: 1rem; }

.profile-content { display: flex; flex-direction: column; gap: 1.5rem; }
.profile-section {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
}
.profile-section h2 {
  font-size: 1.5rem; margin-bottom: 1.25rem;
  padding-bottom: 0.75rem; border-bottom: 1px solid var(--border);
}
.profile-section .listings-grid { margin-bottom: 0; }
.profile-section .listing-image { width: 100%; height: 200px; object-fit: cover; }
.profile-section .listing-info { padding: 1rem; }
.profile-section .listing-info h3 {
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.9375rem; margin-bottom: 0.375rem;
}
.profile-section .listing-info a { color: var(--navy); }
.profile-section .listing-info a:hover { color: var(--gold-dark); }
.profile-section .price { font-family: 'Lora', Georgia, serif; font-size: 1.25rem; color: var(--navy); margin: 0.25rem 0; }
.jobs-list { display: flex; flex-direction: column; gap: 0.875rem; }

/* --- Verify Page ---------------------------------- */
.verify-wrapper {
  max-width: 500px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--border);
  border-top: 4px solid var(--gold); border-radius: var(--radius-lg);
  padding: 2.5rem; box-shadow: var(--shadow-md);
}
.verify-wrapper h1 { font-size: 1.875rem; text-align: center; margin-bottom: 0.5rem; }
.verify-wrapper .subtitle { color: var(--ink-muted); text-align: center; font-size: 0.875rem; margin-bottom: 2rem; }
.verify-icon {
  width: 64px; height: 64px; margin: 0 auto 1.5rem;
  background: var(--navy); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.verify-icon svg { width: 32px; height: 32px; stroke-width: 2.5px; stroke: var(--gold); }
.verification-status {
  background: var(--cream); padding: 1.25rem;
  border-radius: var(--radius-md); margin-bottom: 1.5rem; text-align: center;
}
.status-item { text-align: center; }
.status-label {
  font-size: 0.75rem; color: var(--ink-muted); text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 0.5rem; font-weight: 700;
}
.status-value { font-size: 1.1rem; font-weight: 700; }
.badge-success-s { color: #065f46; }
.badge-error-s   { color: #991b1b; }
.badge-pending-s { color: #92400e; }

.verification-info {
  background: rgba(38,70,83,0.04); padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md); border-left: 4px solid var(--gold); margin-bottom: 1.5rem;
}
.verification-info h2 {
  font-family: 'Nunito', sans-serif; font-weight: 700;
  font-size: 0.9375rem; margin-bottom: 0.75rem; color: var(--navy);
}
.verification-info ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.verification-info li {
  font-size: 0.875rem; color: var(--ink-soft);
  display: flex; align-items: center; gap: 0.5rem;
}
.verification-info li::before { content: "✓"; color: var(--gold-dark); font-weight: 800; flex-shrink: 0; }
.verification-note { text-align: center; color: var(--ink-muted); font-size: 0.875rem; margin-top: 1rem; }
.success-message {
  background: #ecfdf5; border: 1px solid #d1fae5;
  padding: 1.25rem; border-radius: var(--radius-md); margin-bottom: 1.5rem;
}
.success-message p { color: #065f46; margin: 0 0 1rem; font-weight: 700; }
.error-message {
  background: #fef2f2; border: 1px solid #fee2e2;
  padding: 1.25rem; border-radius: var(--radius-md); margin-bottom: 1.5rem;
}
.error-message p { color: #991b1b; margin: 0 0 1rem; font-weight: 700; }

/* --- Form Pages (new listing / job) --------------- */
.form-container, .new-job-container { max-width: 700px; margin: 0 auto; }
.form-wrapper {
  background: var(--white); border: 1px solid var(--border);
  border-top: 4px solid var(--gold); border-radius: var(--radius-lg); padding: 2.5rem;
}
.form-wrapper h1 { font-size: 1.875rem; margin-bottom: 0.25rem; }
.form-wrapper .subtitle { color: var(--ink-muted); margin-bottom: 2rem; font-size: 0.875rem; }

/* --- Pagination ----------------------------------- */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 0.5rem; margin: 2rem 0;
}
.pagination-info { padding: 0 1rem; color: var(--ink-muted); font-size: 0.875rem; }

/* --- Empty States --------------------------------- */
.empty-state { text-align: center; padding: 3rem 2rem; color: var(--ink-muted); }
.empty-state p { margin: 0.5rem 0; }
.empty-state a { color: var(--navy); font-weight: 700; text-decoration: underline; }

/* --- Footer --------------------------------------- */
.footer {
  background: var(--navy);
  border-top: 3px solid var(--gold);
  padding: 2rem 0;
  margin-top: auto;
}
.footer .container {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer p { color: rgba(255,255,255,0.5); font-size: 0.875rem; margin: 0; }
.footer a { color: rgba(255,255,255,0.5); }
.footer a:hover { color: var(--gold); }

/* --- Utils ---------------------------------------- */
.text-muted  { color: var(--ink-muted); }
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }

/* --- Responsive ----------------------------------- */
@media (max-width: 1024px) {
  .job-detail     { grid-template-columns: 1fr; }
  .listing-detail { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  .navbar-links { display: none; }
  .page-content  { padding: 1.5rem 0; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .welcome-section { flex-direction: column; align-items: flex-start; }
  .auth-form-wrapper {
    margin: 0; padding: 2rem 1.25rem;
    border-radius: 0; border-left: none; border-right: none;
  }
  .profile-card .profile-header { flex-direction: column; align-items: center; text-align: center; }
  .profile-photo, .profile-photo-placeholder { width: 120px; height: 120px; }
  .initials { font-size: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .search-form { flex-direction: column; }
  .job-footer { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .card-actions { flex-direction: column; }
  .card-actions a { width: 100%; }
  .message-bubble { max-width: 85%; }
  .listings-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .footer .container { flex-direction: column; text-align: center; }
  .jobs-header { flex-direction: column; }
  .verify-wrapper { border-radius: 0; border-left: none; border-right: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .form-wrapper { padding: 1.75rem 1.25rem; border-radius: 0; border-left: none; border-right: none; }
  .profile-form-wrapper { padding: 1.5rem 1.25rem; }
}

/* ══════════════════════════════════════════════════════════════════════
   HUB / NETWORKING STYLES
   ══════════════════════════════════════════════════════════════════════ */

/* ── Hub Directory ─────────────────────────────────────────────────── */
.hub-page {}

.hub-hero {
  text-align: center;
  padding: 3rem 1rem 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.hub-hero h1 {
  font-family: 'Lora', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.625rem;
}
.hub-hero p {
  font-size: 1.0625rem;
  opacity: 0.8;
  max-width: 520px;
  margin: 0 auto 1.75rem;
}
.hub-search-form {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
  border-radius: 0.625rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hub-search-input {
  flex: 1;
  padding: 0.8125rem 1.125rem;
  border: none;
  background: rgba(255,255,255,0.1);
  color: var(--text-on-dark);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9375rem;
  outline: none;
}
.hub-search-input::placeholder { color: rgba(255,255,255,0.45); }
.hub-search-form .btn { border-radius: 0; padding: 0.8125rem 1.375rem; }

/* ── Category chips ─────────────────────────────────────────────────── */
.hub-category-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.hub-chip {
  padding: 0.4375rem 1rem;
  border-radius: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-on-dark);
  text-decoration: none;
  transition: all 0.15s;
  background: transparent;
}
.hub-chip.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}
.hub-chip:hover:not(.active) {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

/* ── Hub grid ───────────────────────────────────────────────────────── */
.hub-grid-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.hub-grid-header h2 {
  font-family: 'Lora', serif;
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--gold-light);
}
.hub-count-badge {
  font-size: 0.75rem;
  background: rgba(244,162,97,0.15);
  color: var(--gold-light);
  padding: 0.1875rem 0.625rem;
  border-radius: 0.75rem;
  font-weight: 600;
}
.hub-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.hub-card {
  background: var(--white);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(38,70,83,0.12);
  transition: transform 0.15s, box-shadow 0.15s;
}
.hub-card-link { text-decoration: none; display: block; }
.hub-card-link:hover,
.hub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(38,70,83,0.18);
}
.hub-card-body { padding: 1.125rem; }
.hub-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.625rem;
}
.hub-card h3, .hub-card-create h3 {
  font-family: 'Lora', serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.375rem;
}
.hub-card p, .hub-card-create p {
  font-size: 0.8125rem;
  color: #4a6070;
  line-height: 1.5;
  margin-bottom: 0.875rem;
}
.hub-card-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: #6b8a9a;
  font-weight: 600;
}
.hub-card-create {
  background: var(--white);
  border-radius: 0.75rem;
  border: 2px dashed rgba(231,111,81,0.35);
  display: flex;
  align-items: center;
}
.hub-cat-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
}
.hub-joined-dot {
  font-size: 0.6875rem;
  font-weight: 700;
  background: rgba(233,196,106,0.2);
  color: #8a6000;
  padding: 0.125rem 0.5rem;
  border-radius: 0.75rem;
}

/* Category colour map */
.hub-cat-design        { background: rgba(231,111,81,0.1);  color: var(--gold); }
.hub-cat-development   { background: rgba(37,99,235,0.1);   color: #1d4ed8; }
.hub-cat-marketing     { background: rgba(42,157,143,0.1);  color: #1a7068; }
.hub-cat-finance       { background: rgba(233,196,106,0.15);color: #8a6000; }
.hub-cat-writing       { background: rgba(244,162,97,0.1);  color: #c06000; }
.hub-cat-photography   { background: rgba(124,58,237,0.1);  color: #6d28d9; }
.hub-cat-consulting    { background: rgba(244,162,97,0.12); color: #b35000; }
.hub-cat-general       { background: rgba(255,255,255,0.1); color: #4a6070; }

/* ── Individual hub header ──────────────────────────────────────────── */
.hub-header {
  background: var(--navy-dark, #1e3a47);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.hub-header-top {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
.hub-header-icon {
  width: 64px;
  height: 64px;
  border-radius: 0.875rem;
  background: rgba(231,111,81,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.hub-header-info { flex: 1; min-width: 0; }
.hub-header-info h1 {
  font-family: 'Lora', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.hub-header-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.75rem;
}
.hub-meta-row {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.hub-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hub-meta-item strong {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--sand);
  font-family: 'Lora', serif;
}
.hub-meta-item span {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(233,196,106,0.85);
  font-weight: 600;
}
.hub-header-actions { flex-shrink: 0; padding-top: 0.5rem; }
.btn-joined,
.btn-joined:disabled {
  background: rgba(233,196,106,0.55);
  color: #e9c46a;
  border: none;
  opacity: 1;
  padding: 0.5625rem 1.25rem;
  border-radius: 0.5rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  min-height: 44px;
}

/* ── Hub show layout ────────────────────────────────────────────────── */
.hub-show-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  align-items: start;
}
.hub-sidebar { position: sticky; top: 1rem; }
.hub-sidebar-sm { position: static; }

/* ── Sort tabs ──────────────────────────────────────────────────────── */
.hub-sort-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}
.hub-sort-tab {
  padding: 0.625rem 1.125rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(233,196,106,0.55);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
}
.hub-sort-tab.active  { color: var(--gold); border-bottom-color: var(--gold); }
.hub-sort-tab:hover:not(.active) { color: var(--gold-light); }

.hub-new-post-btn { width: 100%; justify-content: center; margin-bottom: 1rem; }

/* ── Post form ──────────────────────────────────────────────────────── */
.hub-post-form-card {
  background: var(--white);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 12px rgba(38,70,83,0.12);
}
.hub-post-form-card h3 {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}
.hub-post-form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.625rem;
  margin-top: 0.75rem;
}
.hidden { display: none !important; }

/* ── Post cards (feed) ──────────────────────────────────────────────── */
.hub-post-card {
  background: var(--white);
  border-radius: 0.625rem;
  padding: 1rem 1.125rem;
  margin-bottom: 0.875rem;
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  box-shadow: 0 2px 12px rgba(38,70,83,0.12);
}
.hub-vote-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 36px;
}
.vote-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1.5px solid #e0e8ed;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  color: #8fa4af;
  transition: all 0.12s;
  padding: 0;
  line-height: 1;
}
.vote-btn.upvoted   { background: rgba(231,111,81,0.1); border-color: var(--gold); color: var(--gold); }
.vote-btn.downvoted { background: rgba(37,99,235,0.08); border-color: #3b82f6; color: #3b82f6; }
.vote-count { font-size: 0.875rem; font-weight: 700; color: var(--navy); }
.vote-count.positive { color: var(--gold); }
.vote-count.negative { color: #3b82f6; }
.hub-post-body { flex: 1; min-width: 0; }
.hub-post-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  margin-bottom: 0.375rem;
}
.hub-tag-discussion  { background: rgba(231,111,81,0.1); color: var(--gold); }
.hub-tag-question    { background: rgba(37,99,235,0.1); color: #1d4ed8; }
.hub-tag-resource    { background: rgba(42,157,143,0.1); color: #1a7068; }
.hub-tag-opportunity { background: rgba(233,196,106,0.15); color: #8a6000; }
.hub-tag-news        { background: rgba(124,58,237,0.1); color: #6d28d9; }

.hub-post-body h4 {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.375rem;
}
.hub-post-body h4 a { color: inherit; text-decoration: none; }
.hub-post-body h4 a:hover { color: var(--gold); }

.hub-post-excerpt {
  margin: 0.3rem 0 0.5rem;
  font-size: 0.875rem;
  color: #5a7080;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hub-post-meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.75rem;
  color: #7a96a4;
  flex-wrap: wrap;
}
.hub-post-author { display: flex; align-items: center; gap: 0.3125rem; }
.mini-avatar-inline {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
  vertical-align: middle;
  overflow: hidden;
}
.mini-avatar-photo {
  width: 30px;
  height: 30px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.hub-comment-count { color: #7a96a4; text-decoration: none; }
.hub-comment-count:hover { color: var(--gold); }

/* ── Sidebar cards ──────────────────────────────────────────────────── */
.sidebar-card {
  background: var(--white);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 12px rgba(38,70,83,0.12);
}
.sidebar-card h3 {
  font-family: 'Lora', serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.875rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid #eef2f4;
}
.sidebar-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  margin-bottom: 0.5rem;
  color: #4a6070;
}
.sidebar-stat-row strong { color: var(--navy); font-weight: 700; }
.hub-sidebar-join-btn  { width: 100%; justify-content: center; margin-top: 0.875rem; }
.hub-sidebar-title-link { color: var(--navy); text-decoration: none; }
.hub-sidebar-title-link:hover { color: var(--gold); }

/* ── Hub rules ──────────────────────────────────────────────────────── */
.hub-rule-item {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  color: #4a6070;
}
.hub-rule-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(231,111,81,0.1);
  color: var(--gold);
  font-size: 0.6875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Moderators ─────────────────────────────────────────────────────── */
.hub-mod-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.625rem;
}
.hub-mod-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
  overflow: hidden;
}
.hub-mod-avatar img.mini-avatar-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.hub-mod-info { flex: 1; }
.hub-mod-name  { font-size: 0.8125rem; font-weight: 700; color: var(--navy); }
.hub-mod-badge {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.4375rem;
  border-radius: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hub-mod-badge-founder { background: #e9c46a; border: none; color: #1c2b1e; }
.hub-mod-badge-moderator { background: rgba(244,162,97,0.15); border: 1px solid rgba(244,162,97,0.5); color: #f4a261; }

/* ── Join prompt inline ─────────────────────────────────────────────── */
.hub-join-prompt { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem; }
.hub-join-prompt-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: var(--text-on-dark);
  margin-bottom: 1.25rem;
}
.hub-join-inline-btn {
  background: none;
  border: none;
  color: var(--gold);
  font-weight: 700;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
}

/* ── Create Hub page ────────────────────────────────────────────────── */
.hub-create-page { max-width: 680px; margin: 0 auto; padding: 2.5rem 0; }
.hub-create-header { margin-bottom: 2rem; }
.hub-create-header h1 {
  font-family: 'Lora', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.375rem;
}
.hub-create-header p { opacity: 0.7; font-size: 0.9375rem; }
.hub-create-card {
  background: var(--white);
  border-radius: 0.875rem;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(38,70,83,0.12);
}
.hub-slug-display {
  background: #f0f4f6 !important;
  color: var(--navy) !important;
  cursor: default;
}
.hub-slug-preview { font-size: 0.75rem; color: #7a96a4; margin-top: 0.3125rem; }
.hub-slug-preview code {
  background: #f0f4f6;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  color: var(--navy);
}
.hub-char-hint { font-size: 0.75rem; color: #7a96a4; display: block; margin-top: 0.25rem; }
.hub-rules-list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.625rem; }
.hub-rule-input-row { display: flex; gap: 0.5rem; align-items: center; }
.hub-rule-input-row .form-control { flex: 1; }
.hub-rule-remove-btn {
  width: 32px;
  height: 32px;
  border: 1.5px solid #f0a0a0;
  background: transparent;
  border-radius: 0.375rem;
  cursor: pointer;
  color: #c05050;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
}
.hub-add-rule-btn {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gold-light);
  background: transparent;
  border: 1.5px dashed rgba(244,162,97,0.4);
  border-radius: 0.5rem;
  padding: 0.5rem 0.875rem;
  cursor: pointer;
  width: 100%;
  font-family: 'Nunito', sans-serif;
  transition: border-color 0.15s;
}
.hub-add-rule-btn:hover { border-color: var(--gold-light); }
.hub-create-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eef2f4;
}

/* ── Post detail ────────────────────────────────────────────────────── */
.hub-breadcrumb {
  font-size: 0.8125rem;
  color: rgba(233,196,106,0.55);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hub-breadcrumb a { color: var(--gold-light); text-decoration: none; }
.hub-breadcrumb a:hover { text-decoration: underline; }

.hub-post-detail-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 1.5rem;
  align-items: start;
}
.hub-post-detail-card {
  background: var(--white);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(38,70,83,0.12);
}
.hub-post-detail-top {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.hub-post-detail-content { flex: 1; min-width: 0; }
.hub-post-detail-title {
  font-family: 'Lora', serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
  margin-top: 0.375rem;
}
.hub-post-detail-body {
  font-size: 0.9375rem;
  color: #3a5060;
  line-height: 1.7;
  margin-top: 1rem;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Comments ───────────────────────────────────────────────────────── */
.hub-comments-section { margin-top: 0.5rem; }
.hub-comments-heading {
  font-family: 'Lora', serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.hub-comment-form-card {
  background: var(--white);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 12px rgba(38,70,83,0.12);
}
.hub-comment-textarea { resize: vertical; }
.hub-comment-form-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.625rem;
}
.hub-comment {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.hub-comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.hub-comment-body {
  flex: 1;
  background: var(--white);
  border-radius: 0.625rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 1px 6px rgba(38,70,83,0.08);
}
.hub-comment-meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.375rem;
  font-size: 0.75rem;
}
.hub-comment-author { font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 0.25rem; }
.hub-comment-time   { color: #8fa4af; }
.hub-comment-text   { font-size: 0.875rem; color: #3a5060; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.hub-empty-comments { text-align: center; padding: 1.5rem 0; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hub-hero h1        { font-size: 1.75rem; }
  .hub-cards-grid     { grid-template-columns: 1fr; }
  .hub-show-layout    { grid-template-columns: 1fr; }
  .hub-sidebar        { position: static; }
  .hub-header-top     { flex-wrap: wrap; }
  .hub-meta-row       { gap: 0.75rem; }
  .hub-post-detail-layout { grid-template-columns: 1fr; }
  .hub-create-card    { padding: 1.25rem; }
  .hub-create-footer  { flex-direction: column; }
  .hub-create-footer .btn { width: 100%; justify-content: center; }
  .hub-search-form    { flex-direction: column; border-radius: 0.5rem; }
  .hub-search-form .btn { border-radius: 0 0 0.5rem 0.5rem; }
}

/* =============================================================
   JOB POSTER AGREEMENT (ToS) PAGE
   ============================================================= */

.tos-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

/* Header zone — sits on dark page background */
.tos-header {
  text-align: center;
  padding-bottom: 36px;
}

.tos-icon-wrap {
  width: 64px;
  height: 64px;
  background: rgba(231,111,81,0.12);
  border: 2px solid rgba(231,111,81,0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.tos-icon-wrap svg {
  width: 28px;
  height: 28px;
  fill: var(--gold);
}

.tos-header h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}

.tos-header .tos-subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
}

/* White content card */
.tos-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Identity banner */
.tos-identity-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(233,196,106,0.15);
  border-bottom: 1px solid rgba(233,196,106,0.25);
  padding: 12px 32px;
  font-size: 0.82rem;
  color: var(--navy);
  font-weight: 600;
}

.tos-identity-badge .tos-verified-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

.tos-identity-badge span {
  color: var(--navy);
  opacity: 0.75;
  font-weight: 400;
}

/* Body sections */
.tos-body {
  padding: 28px 32px 0;
}

.tos-section {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(244,162,97,0.18);
}

.tos-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 24px;
}

.tos-section-inner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.tos-section-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(231,111,81,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.tos-section-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--gold);
}

.tos-section-text h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}

.tos-section-text p {
  font-size: 0.91rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* Warning section — legal consequences */
.tos-section--warning {
  background: rgba(231,111,81,0.06);
  border-left: 4px solid var(--gold);
  border-bottom: none !important;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 20px 18px 16px !important;
  margin: 0 -32px 22px !important;
}

.tos-section--warning .tos-section-icon {
  background: rgba(231,111,81,0.15);
}

.tos-section--warning .tos-section-text h3 {
  color: var(--gold-dark);
}

.tos-section--warning .tos-section-text p {
  color: #4a3020;
}

/* Form area */
.tos-form-area {
  padding: 24px 32px 32px;
  border-top: 1px solid rgba(244,162,97,0.15);
  background: var(--cream);
}

.tos-checkbox-wrapper {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1.5px solid rgba(231,111,81,0.25);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.tos-checkbox-wrapper:hover {
  border-color: var(--gold);
}

.tos-checkbox-wrapper input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.tos-checkbox-label {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
}

.tos-checkbox-label .tos-label-fine {
  color: var(--ink-muted);
  font-weight: 400;
}

.tos-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .tos-container { padding: 24px 16px 60px; }
  .tos-header h1 { font-size: 1.6rem; }
  .tos-body { padding: 20px 20px 0; }
  .tos-form-area { padding: 20px; }
  .tos-section--warning { margin: 0 -20px 22px !important; }
  .tos-actions { flex-direction: column; }
  .tos-actions .btn { width: 100%; }
}

/* ToS submit button — gold CTA override */
#tos-submit-btn {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
#tos-submit-btn:not(:disabled):hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--navy);
}
#tos-submit-btn:disabled {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  opacity: 0.35;
}

/* ═══════════════════════════════════════════
   APPLY PAGE
═══════════════════════════════════════════ */

.apply-page {
  min-height: 100vh;
  background: #f7f8fc;
}

/* Header bar */
.apply-header {
  background: var(--navy);
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(244,162,97,0.2);
}
.apply-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.apply-back { margin-bottom: 0.6rem; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.82rem;
  font-family: 'Nunito', sans-serif;
  transition: color 0.15s;
}
.back-link:hover { color: rgba(255,255,255,0.9); }
.apply-title-block h1 {
  color: #fff;
  font-size: 1.6rem;
  margin: 0 0 0.2rem;
}
.apply-subtitle {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  margin: 0;
  font-family: 'Nunito', sans-serif;
}

/* Body layout */
.apply-body {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

/* Form sections */
.apply-form { display: flex; flex-direction: column; gap: 0; }

.apply-section {
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
}

.apply-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 1rem;
}
.apply-section-label svg { color: var(--gold); flex-shrink: 0; }
.label-optional {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  color: #999;
}
.section-desc {
  font-size: 0.85rem;
  color: #666;
  margin: -0.5rem 0 1rem;
  font-family: 'Nunito', sans-serif;
}

.apply-cover-letter {
  resize: vertical;
  min-height: 160px;
}

/* Upload zones */
.upload-zone {
  border: 2px dashed #d0d4e0;
  border-radius: 8px;
  background: #fafbfd;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
  overflow: hidden;
}
.upload-zone:hover,
.upload-zone--dragover {
  border-color: var(--gold);
  background: rgba(231,111,81,0.04);
}
.upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}
.upload-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
  pointer-events: none;
}
.upload-icon { color: #b0b8cc; margin-bottom: 0.75rem; }
.upload-main-text {
  font-size: 0.9rem;
  color: #555;
  margin: 0 0 0.25rem;
  font-family: 'Nunito', sans-serif;
}
.upload-browse { color: var(--gold); font-weight: 600; }
.upload-sub-text {
  font-size: 0.75rem;
  color: #999;
  margin: 0;
  font-family: 'Nunito', sans-serif;
}
.upload-selected {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.9rem 1rem;
}
.upload-filename {
  flex: 1;
  font-size: 0.875rem;
  font-family: 'Nunito', sans-serif;
  color: var(--navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-clear {
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  padding: 4px;
  display: flex;
  align-items: center;
  border-radius: 4px;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}
.upload-clear:hover { color: #e74c3c; background: #fef0ef; }

/* Apply actions */
.apply-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.5rem;
}
.btn-apply {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy) !important;
  border: 2px solid var(--gold);
  font-weight: 700;
  padding: 0.7rem 1.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn-apply:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-1px); }
.btn-apply:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Sidebar cards */
.apply-job-card,
.apply-tips-card {
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.apply-job-card-header {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 0.5rem;
  font-family: 'Nunito', sans-serif;
}
.apply-job-title {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  color: var(--navy);
  margin: 0 0 0.2rem;
}
.apply-job-company {
  color: #555;
  font-size: 0.875rem;
  margin: 0 0 0.75rem;
  font-family: 'Nunito', sans-serif;
}
.apply-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  font-size: 0.8rem;
  color: #666;
  font-family: 'Nunito', sans-serif;
}
.apply-tips-card h4 {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  color: var(--navy);
  margin: 0 0 0.75rem;
}
.apply-tips-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: #555;
  font-family: 'Nunito', sans-serif;
  line-height: 1.7;
}

/* Applied state badge */
.btn-applied {
  background: #e8f5e9 !important;
  border-color: #c8e6c9 !important;
  color: #2e7d32 !important;
  cursor: default;
  display: inline-flex;
  align-items: center;
}

/* Application count badge on button */
.application-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 12px;
  padding: 1px 7px;
  margin-left: 6px;
  min-width: 20px;
  font-family: 'Nunito', sans-serif;
}
.application-count-badge--inline {
  background: var(--gold);
  color: var(--navy);
}

/* ═══════════════════════════════════════════
   APPLICATIONS PAGE (owner view)
═══════════════════════════════════════════ */

.applications-page {
  min-height: 100vh;
  background: #f7f8fc;
}

.applications-header {
  background: var(--navy);
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(244,162,97,0.2);
}
.applications-header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}
.applications-back { margin-bottom: 0.6rem; }
.applications-title-block h1 {
  color: #fff;
  font-size: 1.6rem;
  margin: 0 0 0.25rem;
}
.applications-subtitle {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  margin: 0;
  font-family: 'Nunito', sans-serif;
}
.app-count-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 12px;
  padding: 1px 9px;
  font-family: 'Nunito', sans-serif;
  vertical-align: middle;
}

.applications-body {
  max-width: 860px;
  margin: 2rem auto;
  padding: 0 2rem 4rem;
}

/* Empty state */
.empty-applications {
  text-align: center;
  padding: 4rem 2rem;
  color: #888;
}
.empty-icon { color: #c8cedc; margin-bottom: 1rem; }
.empty-applications h3 { font-family: 'Lora', serif; color: var(--navy); margin: 0 0 0.5rem; }
.empty-applications p { font-size: 0.9rem; font-family: 'Nunito', sans-serif; margin: 0; }

/* Application cards */
.applications-list { display: flex; flex-direction: column; gap: 1.1rem; }

.application-card {
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  transition: box-shadow 0.15s;
}
.application-card:hover { box-shadow: 0 4px 16px rgba(38,70,83,0.08); }

.application-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.applicant-info { display: flex; flex-direction: column; gap: 2px; }
.applicant-name {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.applicant-name:hover { color: var(--gold); }
.applicant-handle {
  font-size: 0.8rem;
  color: #999;
  font-family: 'Nunito', sans-serif;
}
.verified-dot { display: inline-flex; align-items: center; }

.application-meta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.application-date {
  font-size: 0.78rem;
  color: #aaa;
  font-family: 'Nunito', sans-serif;
}
.application-status {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 6px;
  padding: 2px 8px;
  font-family: 'Nunito', sans-serif;
}
.application-status--pending  { background: #fff8e1; color: #e65100; }
.application-status--reviewed { background: #e3f2fd; color: #1565c0; }
.application-status--accepted { background: #e8f5e9; color: #2e7d32; }
.application-status--rejected { background: #fce4ec; color: #c62828; }

/* Cover letter */
.cover-letter-preview {
  background: #fafbfd;
  border: 1px solid #edf0f7;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.9rem;
}
.cover-letter-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 0.4rem;
  font-family: 'Nunito', sans-serif;
}
.cover-letter-text {
  font-size: 0.875rem;
  color: #444;
  line-height: 1.65;
  font-family: 'Nunito', sans-serif;
  white-space: pre-wrap;
}
.cover-letter-expand {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 0.8rem;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  padding: 0;
  margin-top: 0.4rem;
  font-weight: 600;
  text-decoration: underline;
}
.no-cover-letter {
  font-size: 0.8rem;
  color: #bbb;
  font-style: italic;
  margin-bottom: 0.9rem;
  font-family: 'Nunito', sans-serif;
}

/* Attachments row */
.application-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.attachment-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.attachment-link:hover { opacity: 0.75; }
.attachment-link--resume   { background: #e8f0fe; color: #1a56db; }
.attachment-link--portfolio { background: #fef3c7; color: #92400e; }
.attachment-link--profile   { background: #f0fdf4; color: #166534; }
.attachment-missing {
  font-size: 0.78rem;
  color: #ccc;
  font-style: italic;
  font-family: 'Nunito', sans-serif;
}

/* Cover letter modal */
.cl-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}
.cl-modal {
  background: #fff;
  border-radius: 12px;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.cl-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid #eee;
}
.cl-modal-header h4 {
  font-family: 'Lora', serif;
  font-size: 1rem;
  color: var(--navy);
  margin: 0;
}
.cl-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: color 0.15s, background 0.15s;
}
.cl-modal-close:hover { color: var(--navy); background: #f5f6f8; }
.cl-modal-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.7;
  font-family: 'Nunito', sans-serif;
  white-space: pre-wrap;
}

/* Responsive */
@media (max-width: 768px) {
  .apply-body {
    grid-template-columns: 1fr;
    padding: 0 1rem 3rem;
  }
  .apply-sidebar { order: -1; }
  .apply-header-inner,
  .applications-header-inner,
  .applications-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .application-card-top { flex-direction: column; }
  .application-meta-right { align-items: flex-start; }
}

/* ── Marketplace search form fix ── */
.search-filter-bar-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  width: 100%;
}
.search-filter-bar-form .form-control {
  flex: 1;
  min-width: 180px;
  width: auto;   /* override the 100% that causes flex-basis collapse */
}

/* ═══════════════════════════════════════════
   HOME FEED
═══════════════════════════════════════════ */

.home-page {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.5rem 4rem;
}

.home-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

/* Feed header */
.home-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}
.home-feed-title {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  color: var(--navy);
  margin: 0;
}

/* Empty state */
.home-empty {
  text-align: center;
  padding: 3.5rem 2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #888;
}
.home-empty-icon { color: #c8cedc; margin-bottom: 1rem; }
.home-empty h3 { font-family: 'Lora', serif; color: var(--navy); margin: 0 0 0.5rem; }
.home-empty p { font-size: 0.9rem; font-family: 'Nunito', sans-serif; margin: 0 0 1.25rem; }

/* Post cards */
.home-posts { display: flex; flex-direction: column; gap: 0; }

.home-post-card {
  display: flex;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 1rem 1.25rem;
  border-bottom: none;
  transition: background 0.12s;
}
.home-post-card:first-child { border-radius: 10px 10px 0 0; }
.home-post-card:last-child  { border-radius: 0 0 10px 10px; border-bottom: 1px solid var(--border); }
.home-post-card:only-child  { border-radius: 10px; border-bottom: 1px solid var(--border); }
.home-post-card:hover { background: #fafbfd; }

/* Vote column */
.home-post-votes {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2px;
  min-width: 28px;
}
.home-vote-score {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #aaa;
}
.home-vote-score.score-up   { color: var(--gold); }
.home-vote-score.score-down { color: #e74c3c; }

/* Post body */
.home-post-body { flex: 1; min-width: 0; }

.home-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.75rem;
  color: #999;
  font-family: 'Nunito', sans-serif;
  margin-bottom: 0.35rem;
}
.home-hub-pill {
  background: rgba(38,70,83,0.08);
  color: var(--navy);
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.72rem;
  transition: background 0.12s;
}
.home-hub-pill:hover { background: rgba(38,70,83,0.15); }
.home-post-dot { color: #ddd; }
.home-post-author { color: #888; text-decoration: none; }
.home-post-author:hover { color: var(--gold); }
.home-post-time { color: #bbb; }
.home-post-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 5px;
  border-radius: 4px;
}
.home-post-tag--discussion { background: #e3f2fd; color: #1565c0; }
.home-post-tag--question    { background: #fff8e1; color: #e65100; }
.home-post-tag--resource    { background: #e8f5e9; color: #2e7d32; }
.home-post-tag--opportunity { background: #fce4ec; color: #c62828; }
.home-post-tag--news        { background: #f3e5f5; color: #6a1b9a; }

.home-post-title {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  margin-bottom: 0.3rem;
  line-height: 1.4;
}
.home-post-title:hover { color: var(--gold); }

.home-post-excerpt {
  font-size: 0.83rem;
  color: #666;
  font-family: 'Nunito', sans-serif;
  line-height: 1.55;
  margin: 0 0 0.4rem;
}

.home-post-footer { display: flex; align-items: center; gap: 0.75rem; }
.home-post-comments {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #aaa;
  font-family: 'Nunito', sans-serif;
  text-decoration: none;
  transition: color 0.12s;
}
.home-post-comments:hover { color: var(--gold); }

/* Sidebar */
.home-sidebar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.1rem;
}
.home-sidebar-card-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 0.75rem;
  font-family: 'Nunito', sans-serif;
}
.home-sidebar-empty {
  font-size: 0.82rem;
  color: #bbb;
  font-style: italic;
  font-family: 'Nunito', sans-serif;
  margin: 0 0 0.5rem;
}
.home-hub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.home-hub-list-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-family: 'Nunito', sans-serif;
  color: var(--navy);
  text-decoration: none;
  padding: 5px 6px;
  border-radius: 6px;
  transition: background 0.12s;
}
.home-hub-list-link:hover { background: #f5f6f8; color: var(--gold); }
.home-hub-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  opacity: 0.7;
}
.home-quicklinks {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.home-quicklinks li a {
  display: block;
  font-size: 0.85rem;
  font-family: 'Nunito', sans-serif;
  color: #555;
  text-decoration: none;
  padding: 5px 6px;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
}
.home-quicklinks li a:hover { background: #f5f6f8; color: var(--navy); }
.home-quicklink--disabled {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-family: 'Nunito', sans-serif;
  color: #bbb;
  padding: 5px 6px;
  cursor: default;
  user-select: none;
}
.coming-soon-badge {
  font-size: 0.68rem;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  color: #aaa;
  background: #f0f0f0;
  border-radius: 20px;
  padding: 1px 7px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .home-layout {
    grid-template-columns: 1fr;
  }
  .home-sidebar { order: -1; }
  .home-page { padding: 0 1rem 3rem; }
}

/* ── Comment delete button ──────────────────────────────────────────── */
.hub-comment-delete-btn {
  background: none;
  border: none;
  color: #7a96a4;
  font-size: 1.125rem;
  line-height: 1;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s, color 0.15s;
}
.hub-comment-delete-btn:hover {
  color: #e76f51;
  opacity: 1;
}

/* --- Navbar avatar -------------------------------- */
.navbar-avatar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.avatar-circle {
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-family: 'Nunito', sans-serif;
  flex-shrink: 0;
  transition: opacity var(--dur) var(--ease);
}

.navbar-avatar:hover .avatar-circle { opacity: 0.85; }

.avatar-photo {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
  background: var(--navy-light);
}

/* --- Toast notifications -------------------------------- */
@keyframes toast-in {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes toast-out {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(120%); opacity: 0; }
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem 0.65rem 0.8rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  max-width: 320px;
  animation: toast-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.toast--success {
  background: #1a2e4a;
  color: #fff;
  border-left: 3px solid var(--gold);
}

.toast--error {
  background: #3b1010;
  color: #ffd0d0;
  border-left: 3px solid #e76f51;
}

.toast--hiding {
  animation: toast-out 0.35s ease-in both;
}

.toast__icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  opacity: 0.9;
}

.toast--success .toast__icon { color: #4ade80; }
.toast--error   .toast__icon { color: #e76f51; }

.toast__message {
  flex: 1;
  line-height: 1.3;
}

.toast__close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 0 0 0.4rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.toast__close:hover { opacity: 1; }

@media (max-width: 480px) {
  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }
}

/* ── Unread message badge in navbar ───────────────────────────────────────── */
.nav-messages-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  background: var(--gold);
  color: #1a1008;
  font-size: 0.6rem;
  font-weight: 800;
  border-radius: 999px;
  line-height: 1;
  vertical-align: middle;
  transition: opacity 0.2s;
}
.nav-unread-hidden {
  opacity: 0;
  pointer-events: none;
  min-width: 0;
  padding: 0;
}

/* ── Follow button ─────────────────────────────────────────────────────────── */
.btn-follow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--gold);
  background: transparent;
  color: var(--gold);
  transition: background 0.15s, color 0.15s;
}
.btn-follow:hover,
.btn-follow.following {
  background: var(--gold);
  color: #1a1008;
}
.btn-follow.following:hover {
  background: transparent;
  color: var(--gold);
}

/* ── Follower / following counts on profile ───────────────────────────────── */
.profile-social-counts {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.5rem;
}
.profile-social-counts a {
  text-decoration: none;
  color: inherit;
}
.profile-social-counts .count-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
}
.profile-social-counts .count-num {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary, #1a1a1a);
}
.profile-social-counts .count-label {
  font-size: 0.75rem;
  color: var(--text-muted, #6b7280);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Navbar center wrapper ────────────────────────────────────────────────── */
.navbar-center {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* ── Navbar search container ─────────────────────────────────────────────── */
.navbar-search {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.15s, background 0.15s;
  padding: 0;
}
.nav-search-toggle:hover,
.navbar-search.is-open .nav-search-toggle {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* The sliding panel */
.nav-search-panel {
  position: absolute;
  right: 2.3rem;       /* sits just left of the 2rem toggle button */
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  overflow: hidden;    /* clips input properly when closed */
  pointer-events: none;
  transition: width 0.22s cubic-bezier(0.4,0,0.2,1);
}
.navbar-search.is-open .nav-search-panel {
  width: 260px;
  pointer-events: all;
}

.nav-search-input {
  width: 100%;
  padding: 0.45rem 0.8rem;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  color: #fff;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s;
}
.navbar-search.is-open .nav-search-input {
  opacity: 1;
}
.nav-search-input::placeholder { color: rgba(255,255,255,0.45); }
.nav-search-input:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.18);
}

/* Results dropdown */
.nav-search-results {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  left: auto;
  min-width: 300px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.14);
  overflow: hidden;
  z-index: 2000;
  display: none;
}
.nav-search-results.has-results {
  display: block;
}

/* Individual member result card */
.search-member-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  text-decoration: none;
  color: #1a1a1a;
  cursor: pointer;
  transition: background 0.1s;
  border-bottom: 1px solid #f3f4f6;
}
.search-member-item:last-child { border-bottom: none; }
.search-member-item:hover,
.search-member-item.is-focused {
  background: #f9fafb;
}

/* Avatar in result */
.search-member-avatar {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold, #c9963e);
  color: #1a1008;
  font-size: 0.8rem;
  font-weight: 700;
}
.search-member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text block */
.search-member-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.search-member-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.search-member-username {
  font-size: 0.75rem;
  color: #6b7280;
}
.search-member-meta {
  font-size: 0.7rem;
  color: #9ca3af;
  margin-top: 0.05rem;
}

/* Empty / loading states */
.search-no-results {
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
}
.search-loading {
  padding: 0.8rem 1rem;
  font-size: 0.8rem;
  color: #9ca3af;
  text-align: center;
}

/* Badge inline in search result */
.search-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  padding: 0 0.3rem;
  border-radius: 4px;
  font-weight: 700;
  vertical-align: middle;
}
.search-badge-verified { background: #dbeafe; color: #1d4ed8; }
.search-badge-founder  { background: #fef3c7; color: #92400e; }
.search-badge-admin    { background: #fce7f3; color: #9d174d; }
