/* =========================================================
   FreelanceHub — black & yellow theme
   ========================================================= */
:root {
  --brand: #f5c400;            /* logo yellow */
  --brand-rgb: 245, 196, 0;
  --brand-deep: #e0a800;
  --brand-strong: #8a6500;     /* yellow-family text that stays readable on light backgrounds */
  --brand-soft: #fff4c2;
  --ink: #141414;              /* logo black */
  --on-brand: #141414;         /* text on yellow is always black */
  --gray: #6f6a5e;
  --border: #e9e4d6;
  --bg: #faf8f1;
  --surface: #ffffff;
  --surface-2: #f8f6ef;
  --text: #141414;
  --danger: #d93f4f;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20,20,20,.05), 0 1px 3px rgba(20,20,20,.06);
  --shadow-md: 0 8px 24px -6px rgba(20,20,20,.14);
  --shadow-lg: 0 20px 40px -12px rgba(20,20,20,.25);
  --grad: linear-gradient(135deg, #ffd43b 0%, #f5b800 100%);
  --ease: cubic-bezier(.22,.8,.3,1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand-strong: #ffd43b;
    --brand-soft: rgba(245,196,0,.14);
    --gray: #9a958a;
    --border: #2b2b2b;
    --bg: #0c0c0c;
    --surface: #161616;
    --surface-2: #1d1d1d;
    --text: #f3f1ea;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
    --shadow-md: 0 8px 24px -6px rgba(0,0,0,.6);
    --shadow-lg: 0 20px 40px -12px rgba(0,0,0,.75);
  }
}
:root[data-theme="dark"] {
  --brand-strong: #ffd43b;
  --brand-soft: rgba(245,196,0,.14);
  --gray: #9a958a;
  --border: #2b2b2b;
  --bg: #0c0c0c;
  --surface: #161616;
  --surface-2: #1d1d1d;
  --text: #f3f1ea;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
  --shadow-md: 0 8px 24px -6px rgba(0,0,0,.6);
  --shadow-lg: 0 20px 40px -12px rgba(0,0,0,.75);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 500px at 8% -10%, rgba(var(--brand-rgb),.16), transparent 60%),
    radial-gradient(800px 480px at 100% 0%, rgba(var(--brand-rgb),.08), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--brand); color: var(--on-brand); }
h1, h2, h3 { letter-spacing: -.02em; }
a { transition: color .2s var(--ease); }

/* ===== TOP BAR (black glass with a yellow edge) ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20,20,20,.9);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 3px solid var(--brand);
  transition: box-shadow .3s var(--ease);
}
.topbar.scrolled { box-shadow: var(--shadow-md); }
.topbar-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 20px; letter-spacing: -.03em; text-decoration: none; color: #fff;
  transition: transform .3s var(--ease);
}
.logo img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #fff; }
.logo em { font-style: normal; color: var(--brand); }
.logo:hover { transform: scale(1.03); }

.nav-links { display: flex; gap: 24px; }
.nav-links a { position: relative; color: #f3f1ea; text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 2px; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  color: #f3f1ea; border-radius: 12px; cursor: pointer;
  transition: background .2s, color .2s, transform .25s var(--ease);
}
.icon-btn svg { transition: transform .3s var(--ease); }
.icon-btn:hover { background: rgba(255,255,255,.08); color: var(--brand); }
.icon-btn:hover svg { transform: translateY(-2px) scale(1.1); }
.icon-btn.active { background: var(--brand); color: var(--on-brand); }
.icon-btn img.mini-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }

.nav-text-link { color: #f3f1ea; font-weight: 600; font-size: 14px; text-decoration: none; padding: 8px 12px; }
.nav-text-link:hover { color: var(--brand); }

/* Profile dropdown */
.profile-menu { position: relative; }
.profile-menu summary { list-style: none; }
.profile-menu summary::-webkit-details-marker { display: none; }
.profile-menu[open] summary { background: var(--brand); color: var(--on-brand); }
.profile-menu .dropdown {
  position: absolute; right: 0; top: calc(100% + 12px);
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg); min-width: 200px; overflow: hidden; padding: 6px;
  transform-origin: top right; animation: pop .22s var(--ease);
}
.profile-menu .dropdown a {
  display: block; padding: 10px 14px; color: var(--text); text-decoration: none; font-size: 14px; border-radius: 9px;
  transition: background .15s, padding-left .2s var(--ease);
}
.profile-menu .dropdown a:hover { background: var(--brand-soft); padding-left: 20px; }
.profile-menu .dropdown a.logout { color: var(--danger); margin-top: 4px; border-top: 1px solid var(--border); border-radius: 0 0 9px 9px; }
.profile-menu .dropdown a.logout:hover { background: rgba(217,63,79,.1); }

main { max-width: 680px; margin: 0 auto; padding: 28px 20px 70px; }
main.wide { max-width: 1080px; }

/* ===== PANEL ===== */
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 26px; margin-bottom: 24px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.panel:hover { box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.panel h2 { margin-top: 0; font-size: 18px; }

/* ===== FORM ===== */
.field { margin-bottom: 16px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="file"], select, textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text); font-size: 14px; font-family: inherit;
  transition: border-color .2s, box-shadow .25s var(--ease), background .2s;
}
input::placeholder, textarea::placeholder { color: var(--gray); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); background: var(--surface);
  box-shadow: 0 0 0 4px rgba(var(--brand-rgb),.28);
}
input[type="file"]::file-selector-button {
  background: var(--brand-soft); color: var(--text); border: none; padding: 6px 14px;
  border-radius: 8px; font-weight: 600; margin-right: 12px; cursor: pointer; transition: background .2s;
}
input[type="file"]::file-selector-button:hover { background: var(--brand); color: var(--on-brand); }

button[type="submit"], .btn {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--grad); color: var(--on-brand); border: none; padding: 11px 24px;
  border-radius: 12px; font-weight: 700; font-size: 14px; font-family: inherit; cursor: pointer;
  text-decoration: none; display: inline-block;
  box-shadow: 0 6px 16px -4px rgba(var(--brand-rgb),.6);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
}
button[type="submit"]::before, .btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
button[type="submit"]:hover, .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -6px rgba(var(--brand-rgb),.65); }
button[type="submit"]:hover::before, .btn:hover::before { transform: translateX(120%); }
button[type="submit"]:active, .btn:active { transform: translateY(0) scale(.97); }
button[type="submit"]:disabled { background: var(--gray); box-shadow: none; cursor: not-allowed; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-outline { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--text); }
.btn-outline:hover { background: var(--ink); color: var(--brand); box-shadow: inset 0 0 0 2px var(--ink); }
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.6); transform: scale(0); animation: ripple .6s linear; pointer-events: none; z-index: -1; }
.note { font-size: 13px; color: var(--gray); font-style: italic; margin: -6px 0 14px 0; }

.error { font-size: 13px; color: var(--danger); margin: -6px 0 14px 0; animation: shake .4s; }
.success {
  font-size: 14px; color: var(--text); font-weight: 600; margin: 0 0 18px;
  background: var(--brand-soft); padding: 12px 16px; border-radius: var(--radius-sm);
  border-left: 4px solid var(--brand); animation: slideDown .4s var(--ease);
}

/* ===== AVATAR (black badge, yellow initials) ===== */
.avatar {
  border-radius: 50%; flex-shrink: 0; object-fit: cover;
  background: var(--ink); color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 800;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px color-mix(in srgb, var(--brand) 70%, transparent);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.avatar-sm { width: 36px; height: 36px; font-size: 12px; }
.avatar-md { width: 46px; height: 46px; font-size: 14px; }
.avatar-lg { width: 104px; height: 104px; font-size: 32px; box-shadow: 0 0 0 4px var(--surface), 0 0 0 7px var(--brand), var(--shadow-md); }
.job-card:hover .avatar, .member-card:hover .avatar, .suggest-row:hover .avatar { transform: scale(1.08) rotate(-3deg); }

/* ===== TAG ===== */
.tag { display: inline-block; background: var(--brand-soft); color: var(--brand-strong); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; }

/* ===== THREAD / MESSAGE LIST ===== */
.thread { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.dm { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.dm:last-child { border-bottom: none; }
.dm .meta { font-size: 12px; color: var(--gray); margin-bottom: 4px; }
.dm .meta strong { color: var(--text); }
.dm .bubble { display: inline-block; background: var(--brand-soft); border-radius: 14px; padding: 9px 14px; font-size: 14px; white-space: pre-wrap; }
.dm .when { font-size: 11px; color: var(--gray); margin-top: 4px; }

.empty-note {
  padding: 32px 16px; text-align: center; color: var(--gray); font-size: 14px; background: var(--surface);
  border: 2px dashed var(--border); border-radius: var(--radius); margin-bottom: 24px;
}

footer { border-top: 3px solid var(--brand); text-align: center; padding: 24px; color: #bdb8aa; font-size: 13px; background: var(--ink); }
footer p { margin: 0; }

/* =========================================================
   AUTH PAGES
   ========================================================= */
body.auth {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  position: relative; overflow: hidden;
}
body.auth::before, body.auth::after {
  content: ""; position: fixed; width: 460px; height: 460px; border-radius: 50%; filter: blur(80px); opacity: .45; z-index: 0;
  animation: float 14s ease-in-out infinite;
}
body.auth::before { background: #f5c400; top: -140px; left: -120px; }
body.auth::after { background: #ff9f00; bottom: -160px; right: -120px; animation-delay: -7s; opacity: .3; }
.login-card {
  position: relative; z-index: 1; width: 100%; max-width: 420px; padding: 34px 34px 38px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border); border-top: 4px solid var(--brand); border-radius: 24px;
  box-shadow: var(--shadow-lg); animation: rise .7s var(--ease) both;
}
.login-card .brand { display: block; text-align: center; margin-bottom: 6px; }
.login-card .brand img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; transition: transform .4s var(--ease); }
.login-card .brand:hover img { transform: rotate(-6deg) scale(1.04); }
.login-card h2 { text-align: center; margin: 0 0 26px; font-size: 16px; font-weight: 500; color: var(--gray); }
.form-group { margin-bottom: 16px; animation: rise .6s var(--ease) both; }
.form-group:nth-of-type(1) { animation-delay: .1s; }
.form-group:nth-of-type(2) { animation-delay: .18s; }
.form-group:nth-of-type(3) { animation-delay: .26s; }
.btn-login { width: 100%; padding: 13px; font-size: 15px; margin-top: 6px; }
.signup-text { text-align: center; font-size: 14px; color: var(--gray); margin: 22px 0 0; }
.signup-text a { color: var(--brand-strong); font-weight: 700; text-decoration: none; }
.signup-text a:hover { text-decoration: underline; }

/* =========================================================
   HOME / POSTS
   ========================================================= */
.home-layout { display: grid; grid-template-columns: 1fr 310px; gap: 26px; align-items: start; }
.home-layout > div:last-child { position: sticky; top: 88px; }

.composer-toggle {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 20px; cursor: pointer; color: var(--gray); font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-sm); list-style: none; transition: transform .25s var(--ease), box-shadow .25s, color .2s, border-color .2s;
}
.composer-toggle:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--text); border-color: var(--brand); }
.composer-toggle::-webkit-details-marker { display: none; }
details[open] > .composer-toggle { border-radius: var(--radius) var(--radius) 0 0; border-bottom: none; color: var(--text); font-weight: 700; margin-bottom: 0; transform: none; box-shadow: none; }
.composer-body {
  background: var(--surface); border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius) var(--radius);
  padding: 20px; margin-bottom: 20px; animation: slideDown .35s var(--ease);
}
.composer-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.composer-head strong { color: var(--brand-strong); }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
#post-map { height: 240px; border-radius: var(--radius-sm); border: 1px solid var(--border); margin-bottom: 6px; }
.map-hint { font-size: 12px; color: var(--gray); margin-bottom: 14px; }

.tabs { display: inline-flex; gap: 4px; margin-bottom: 18px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow-sm); }
.tabs a { font-size: 13px; font-weight: 700; padding: 8px 18px; border-radius: 999px; text-decoration: none; color: var(--gray); transition: all .25s var(--ease); }
.tabs a:hover { color: var(--text); }
.tabs a.active { background: var(--brand); color: var(--on-brand); box-shadow: 0 4px 12px -2px rgba(var(--brand-rgb),.55); }

.job-card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 20px; overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.job-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand);
  transform: scaleY(0); transform-origin: top; transition: transform .4s var(--ease);
}
.job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 55%, var(--border)); }
.job-card:hover::before { transform: scaleY(1); }
.job-card .card-header { display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.job-card .who { font-weight: 700; font-size: 14px; }
.job-card .sub { font-size: 12px; color: var(--gray); }
.job-card .card-body { padding: 0 18px 16px; }
.job-card .card-body h3 { margin: 0 0 6px 0; font-size: 17px; }
.job-card .card-body p { margin: 0 0 12px 0; font-size: 14px; color: color-mix(in srgb, var(--text) 82%, var(--gray)); }
.job-card .card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--border); background: var(--surface-2); }
.job-card .card-actions form { margin: 0; }

.status-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-left: 4px; }
.status-open { background: var(--brand-soft); color: var(--brand-strong); }
.status-open::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-deep); margin-right: 6px; animation: pulse 2s infinite; }
.status-taken { background: var(--ink); color: var(--brand); }
.status-finished { background: color-mix(in srgb, var(--text) 9%, transparent); color: var(--gray); }

.pill-btn {
  display: inline-block; border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none;
  transition: all .25s var(--ease);
}
.pill-btn.active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.pill-btn:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 6px 14px -4px rgba(var(--brand-rgb),.45); }
.pill-btn:active { transform: scale(.95); }
.own-note { font-size: 12px; color: var(--gray); margin-right: auto; }
.delete-btn { background: none; border: none; color: var(--gray); font-size: 12px; font-family: inherit; cursor: pointer; margin-left: auto; transition: color .2s; }
.delete-btn:hover { color: var(--danger); }

/* Sidebar */
.suggest-panel h2, .demand-panel h2 { font-size: 15px; }
.suggest-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 6px; margin-inline: -6px; border-radius: 12px; transition: background .2s; }
.suggest-row:hover { background: var(--brand-soft); }
.suggest-info { flex: 1; min-width: 0; }
.suggest-name { font-weight: 600; font-size: 13px; }
.suggest-rating { font-size: 12px; color: var(--gray); }
.suggest-view, .see-all { font-size: 12px; color: var(--brand-strong); text-decoration: none; font-weight: 700; }
.suggest-view:hover, .see-all:hover { text-decoration: underline; }
.see-all { display: block; text-align: center; font-size: 13px; margin-top: 8px; }

.demand-row { display: grid; grid-template-columns: 80px 1fr 26px; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 12px; }
.demand-track { background: var(--surface-2); border: 1px solid var(--border); height: 10px; border-radius: 999px; overflow: hidden; }
.demand-fill { background: var(--grad); height: 100%; border-radius: 999px; transform-origin: left; animation: grow 1.1s var(--ease) both; }
.demand-row:nth-child(3) .demand-fill { animation-delay: .1s; }
.demand-row:nth-child(4) .demand-fill { animation-delay: .2s; }
.demand-row:nth-child(5) .demand-fill { animation-delay: .3s; }
.demand-row:nth-child(6) .demand-fill { animation-delay: .4s; }

/* =========================================================
   MAP PAGE
   ========================================================= */
body.page-map main { max-width: 780px; }
.map-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; box-shadow: var(--shadow-md); }
.map-card iframe { width: 100%; height: 420px; border: 0; display: block; }
h2.section-title { font-size: 16px; margin: 0 0 14px 4px; }
.job-list-item {
  display: block; width: 100%; text-align: left; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px;
  text-decoration: none; color: inherit; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), border-color .2s, box-shadow .25s, background .2s;
}
.job-list-item:hover { border-color: var(--brand); transform: translateX(6px); box-shadow: var(--shadow-md); }
.job-list-item.active { background: var(--brand-soft); border-color: var(--brand); }
.job-list-item .title { font-weight: 600; font-size: 14px; }
.job-list-item .sub { font-size: 12px; color: var(--gray); margin-top: 2px; }

/* =========================================================
   SUKI PAGE
   ========================================================= */
main h1 { font-size: 26px; margin: 0 0 4px 0; }
.subhead { color: var(--gray); font-size: 14px; margin-bottom: 20px; }
.search-form { display: flex; gap: 10px; margin-bottom: 22px; }
.search-form input { flex: 1; border-radius: 999px; padding-left: 18px; }
.search-form .btn { border-radius: 999px; }
.member-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.member-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px;
  display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.member-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.member-name { font-weight: 700; font-size: 14px; }
.member-rating { font-size: 12px; color: var(--gray); margin-top: 2px; }
.member-rating .stars { color: var(--brand-deep); font-weight: 700; }
.member-card a.view-link { font-size: 12px; color: var(--brand-strong); text-decoration: none; font-weight: 700; display: inline-block; margin-top: 4px; transition: transform .2s var(--ease); }
.member-card a.view-link:hover { transform: translateX(4px); }
.member-card a.view-link::after { content: " →"; }

/* =========================================================
   COMMUNICATIONS
   ========================================================= */
.comm-layout { max-width: 940px; margin: 28px auto 70px; padding: 0 20px; }
.comm-frame {
  display: grid; grid-template-columns: 290px 1fr; border: 1px solid var(--border); border-radius: 20px;
  overflow: hidden; background: var(--surface); min-height: 540px; box-shadow: var(--shadow-md);
}
.suki-list { border-right: 1px solid var(--border); overflow-y: auto; max-height: 660px; background: var(--surface-2); }
.suki-item {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 14px 16px; border: none; border-bottom: 1px solid var(--border);
  background: none; cursor: pointer; text-decoration: none; color: inherit; transition: background .2s, padding-left .25s var(--ease);
}
.suki-item::before { content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 3px; border-radius: 3px; background: var(--brand); transform: scaleY(0); transition: transform .3s var(--ease); }
.suki-item:hover { background: var(--brand-soft); padding-left: 20px; }
.suki-item.active { background: var(--brand-soft); }
.suki-item.active::before, .suki-item:hover::before { transform: scaleY(1); }
.suki-item .name { font-weight: 600; font-size: 14px; }
.suki-item .preview { font-size: 12px; color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chat-panel { display: flex; flex-direction: column; min-width: 0; }
.chat-head { padding: 15px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; transition: background .2s; }
.chat-head:hover { background: var(--brand-soft); }
.chat-head .name { font-weight: 700; font-size: 15px; }
.chat-messages { flex: 1; padding: 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; max-height: 440px; scroll-behavior: smooth; }
.msg { max-width: 72%; padding: 10px 15px; border-radius: 18px; font-size: 14px; line-height: 1.45; animation: msgIn .4s var(--ease) both; }
.msg.them { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 5px; transform-origin: left bottom; }
.msg.me { align-self: flex-end; background: var(--grad); color: var(--on-brand); border-bottom-right-radius: 5px; transform-origin: right bottom; box-shadow: 0 6px 14px -6px rgba(var(--brand-rgb),.65); }
.chat-compose { display: flex; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface); }
.chat-compose textarea { flex: 1; resize: none; min-height: 46px; border-radius: 23px; padding: 12px 18px; }
.chat-compose button { align-self: flex-end; border-radius: 999px; }
.chat-placeholder { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--gray); padding: 40px; text-align: center; }

/* =========================================================
   PROFILE
   ========================================================= */
.profile-header { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.profile-header h1 { margin: 0 0 4px 0; font-size: 24px; }
.profile-header .bio-text { margin: 0 0 8px 0; color: var(--gray); font-size: 14px; max-width: 400px; }
.rating-summary { font-size: 14px; color: var(--brand-strong); font-weight: 700; }
.rating-summary .count { color: var(--gray); font-weight: 400; }

.cred-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 26px; }
.cred-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.cred-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.cred-thumb { display: block; width: 100%; height: 140px; object-fit: cover; background: var(--brand-soft); transition: transform .6s var(--ease); }
.cred-card:hover .cred-thumb { transform: scale(1.06); }
.cred-thumb-pdf { display: flex; align-items: center; justify-content: center; width: 100%; height: 140px; background: var(--ink); color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: .1em; }
.cred-body { padding: 14px 16px; position: relative; background: var(--surface); }
.cred-body .title { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.cred-body .when { font-size: 12px; color: var(--gray); margin-bottom: 8px; }
.cred-actions { display: flex; justify-content: space-between; align-items: center; }
.cred-actions a { font-size: 12px; color: var(--brand-strong); text-decoration: none; font-weight: 700; }
.cred-actions a:hover { text-decoration: underline; }

/* Star rating (pure CSS) */
.star-rating { display: inline-flex; flex-direction: row-reverse; border: none; padding: 0; margin: 0 0 14px 0; }
.star-rating input { position: absolute; opacity: 0; }
.star-rating label { font-size: 34px; color: var(--border); cursor: pointer; padding: 0 3px; margin: 0; line-height: 1.2; transition: color .2s, transform .25s var(--ease); }
.star-rating input:checked ~ label { color: var(--brand-deep); }
.star-rating label:hover, .star-rating label:hover ~ label { color: var(--brand-deep); transform: scale(1.25) rotate(-8deg); }
.star-rating input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 6px; }

.review { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); transition: background .2s; }
.review:hover { background: var(--surface-2); }
.review:last-child { border-bottom: none; }
.review .meta { font-size: 13px; margin-bottom: 3px; }
.review .meta strong { color: var(--text); }
.review .meta .stars, .review .comment .stars { color: var(--brand-deep); margin-left: 6px; }
.review .comment { font-size: 14px; }
.review .when { font-size: 11px; color: var(--gray); margin-top: 4px; }
.review .comment a { color: var(--brand-strong); font-weight: 600; }
.section-heading { font-size: 16px; margin: 0 0 12px 4px; }

/* ===== Settings: theme toggle ===== */
.seg { display: inline-flex; gap: 8px; margin-bottom: 8px; }
.seg button {
  font: inherit; font-weight: 600; cursor: pointer; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 22px; transition: background .2s var(--ease), border-color .2s, color .2s;
}
.seg button:hover { border-color: var(--brand); }
.seg button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.help-text { font-size: 13px; color: var(--gray); margin: 0 0 12px 0; }

/* =========================================================
   LANDING PAGE
   ========================================================= */
.hero { max-width: 1080px; margin: 0 auto; padding: 72px 20px 64px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: var(--ink); color: var(--brand); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.06; margin: 0 0 18px; letter-spacing: -.035em; }
.hero h1 mark { background: linear-gradient(transparent 58%, var(--brand) 58%); color: inherit; padding: 0 4px; }
.hero .lead { font-size: 18px; color: var(--gray); max-width: 520px; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; display: flex; justify-content: center; isolation: isolate; }
.hero-art::before { content: ""; position: absolute; inset: 10%; border-radius: 50%; background: var(--brand); filter: blur(60px); opacity: .4; z-index: -1; }
.hero-art img { width: min(360px, 100%); border-radius: 50%; box-shadow: 0 30px 60px -20px rgba(20,20,20,.35); animation: bob 6s ease-in-out infinite; }


.landing-section { max-width: 1080px; margin: 0 auto; padding: 72px 20px 0; }
.landing-section h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 8px; text-align: center; }
.section-lead { text-align: center; color: var(--gray); margin: 0 auto 36px; max-width: 560px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); color: var(--brand); font-weight: 800; font-size: 18px; margin-bottom: 14px;
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--brand);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--gray); font-size: 14px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature {
  display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.feature .icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; background: var(--brand); color: var(--on-brand); display: flex; align-items: center; justify-content: center; }
.feature h3 { margin: 0 0 4px; font-size: 16px; }
.feature p { margin: 0; color: var(--gray); font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  padding: 10px 20px; border-radius: 999px; background: var(--surface); border: 2px solid var(--text);
  font-weight: 700; font-size: 14px; transition: all .25s var(--ease);
}
.chip:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); transform: translateY(-3px) rotate(-2deg); }

.cta-band { max-width: 1080px; margin: 0 auto; padding: 72px 20px; }
.cta-inner { position: relative; overflow: hidden; background: var(--ink); border-radius: 24px; padding: 52px 32px; text-align: center; }
.cta-inner::after { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: var(--brand); right: -90px; top: -110px; }
.cta-inner::before { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; border: 18px solid var(--brand); left: -60px; bottom: -70px; opacity: .5; }
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin: 0 0 8px; }
.cta-inner p { color: #bdb8aa; margin: 0 0 26px; }

/* =========================================================
   EFFECTS
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px) scale(.985); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.job-card.reveal.in, .member-card.reveal.in, .cred-card.reveal.in, .panel.reveal.in, .step.reveal.in, .feature.reveal.in {
  transition: opacity .7s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; transition-delay: 0s;
}

@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(12px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb),.7); } 70% { box-shadow: 0 0 0 7px rgba(var(--brand-rgb),0); } 100% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb),0); } }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,30px) scale(1.1); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (max-width: 800px) {
  .home-layout { grid-template-columns: 1fr; }
  .home-layout > div:last-child { position: static; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 44px; }
  .hero .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art img { width: 220px; }
  .steps, .features { grid-template-columns: 1fr; }
}
@media (max-width: 700px) { .comm-frame { grid-template-columns: 1fr; } .suki-list { max-height: 220px; border-right: none; border-bottom: 1px solid var(--border); } }
@media (max-width: 500px) {
  .member-grid, .cred-grid { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; gap: 0; }
  .login-card { padding: 30px 22px; }
  .logo { font-size: 0; }               /* just the badge on small phones */
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Jobs in Demand: long custom category names get "…" (full name on hover) */
.demand-row { grid-template-columns: 90px 1fr 26px; }
.demand-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* =========================================================
   JOB POST MEDIA (map + photos) AND VIEWER
   ========================================================= */
.image-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.image-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 2px solid var(--brand); }

.job-media {
  display: grid; grid-template-columns: repeat(var(--cols, 1), 1fr); gap: 6px;
  margin: 0 0 14px; border-radius: 12px; overflow: hidden;
}
.media-tile {
  position: relative; isolation: isolate; display: block; width: 100%; height: 96px;
  padding: 0; margin: 0; border: 0; font: inherit; color: inherit;
  background: var(--surface-2); overflow: hidden; cursor: zoom-in;
}
.media-tile:first-child { grid-column: 1 / -1; height: 230px; }
.media-tile[hidden] { display: none; }
.media-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.media-tile:hover img { transform: scale(1.05); }
.media-tile:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.mini-map { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.media-label {
  position: absolute; left: 10px; bottom: 10px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink); color: var(--brand); font-size: 12px; font-weight: 700;
  padding: 5px 10px; border-radius: 999px; box-shadow: var(--shadow-md);
}
.media-more {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center;
  background: rgba(20,20,20,.6); color: #fff; font-size: 22px; font-weight: 800;
}

/* Keep Leaflet maps from floating above the sticky top bar */
.leaflet-container { z-index: 0; }

body.viewer-open { overflow: hidden; }
.viewer {
  position: fixed; inset: 0; z-index: 1000; background: rgba(10,10,10,.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 64px 76px 28px; animation: fadeIn .2s ease;
}
.viewer[hidden] { display: none; }
.viewer-stage { width: min(1000px, 100%); height: min(75vh, 700px); display: flex; align-items: center; justify-content: center; }
.viewer-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.6); animation: pop .25s var(--ease); }
.viewer-map { width: 100%; height: 100%; border-radius: 12px; overflow: hidden; border: 3px solid var(--brand); }
.viewer-caption { margin-top: 14px; color: #f3f1ea; font-size: 14px; text-align: center; }
.viewer-caption strong { color: var(--brand); }
.viewer-caption a { color: var(--brand); font-weight: 700; }
.viewer-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s;
}
.viewer-btn[hidden] { display: none; }
.viewer-btn:hover { background: var(--brand); color: var(--on-brand); }
.viewer-close { top: 16px; right: 16px; }
.viewer-prev { left: 16px; top: 50%; margin-top: -24px; }
.viewer-next { right: 16px; top: 50%; margin-top: -24px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 600px) {
  .viewer { padding: 64px 10px 84px; }
  .viewer-prev, .viewer-next { top: auto; bottom: 18px; margin-top: 0; }
  .viewer-prev { left: calc(50% - 60px); }
  .viewer-next { right: calc(50% - 60px); }
  .media-tile:first-child { height: 190px; }
}

/* =========================================================
   EMAIL VERIFICATION & PASSWORD RESET
   ========================================================= */
.auth-title { text-align: center; font-size: 22px; margin: 4px 0 10px; }
.auth-text { text-align: center; font-size: 14px; margin: 0 0 12px; }
.auth-text strong { color: var(--brand-strong); word-break: break-all; }
.auth-text.muted { color: var(--gray); font-size: 13px; margin-bottom: 18px; }
.forgot-link { text-align: right; margin: -6px 0 14px; font-size: 13px; }
.forgot-link a { color: var(--brand-strong); font-weight: 700; text-decoration: none; }
.forgot-link a:hover { text-decoration: underline; }
.change-email { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.change-email summary { cursor: pointer; list-style: none; text-align: center; font-size: 13px; font-weight: 700; color: var(--brand-strong); }
.change-email summary::-webkit-details-marker { display: none; }
.change-email form { margin-top: 14px; }

/* Pop-up message that fades in, stays ~4 seconds, then fades out */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 1100; max-width: calc(100% - 32px);
  background: var(--ink); color: #fff; border-left: 4px solid var(--brand);
  padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow-lg);
  font-size: 14px; font-weight: 600; pointer-events: none;
  animation: toastInOut 5s var(--ease) forwards;
}
@keyframes toastInOut {
  0%   { opacity: 0; transform: translate(-50%, 16px); }
  8%   { opacity: 1; transform: translate(-50%, 0); }
  85%  { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 16px); visibility: hidden; }
}

/* =========================================================
   MESSAGE NOTIFICATIONS
   ========================================================= */
.icon-btn { position: relative; }
.nav-badge {
  position: absolute; top: 2px; right: 0;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px #141414; animation: pop .3s var(--ease);
}
.nav-badge[hidden] { display: none; }

/* Unread conversations in the Messages list */
.suki-text { flex: 1; min-width: 0; }
.suki-item.unread .name { font-weight: 800; }
.suki-item.unread .preview { color: var(--text); font-weight: 600; }
.unread-count {
  flex-shrink: 0; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px;
  background: var(--danger); color: #fff; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* "New message from …" pop-up */
.msg-toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 1100;
  display: flex; flex-direction: column; gap: 2px; max-width: 340px;
  background: var(--ink); color: #fff; text-decoration: none;
  border-left: 4px solid var(--brand); border-radius: 14px; padding: 14px 18px;
  box-shadow: var(--shadow-lg); animation: toastSlideIn .35s var(--ease);
  transition: opacity .5s, transform .5s;
}
.msg-toast strong { color: var(--brand); font-size: 14px; }
.msg-toast span { color: #cfcabd; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-toast:hover { transform: translateY(-2px); }
.msg-toast.hide { opacity: 0; transform: translateX(30px); }
@keyframes toastSlideIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@media (max-width: 500px) { .msg-toast { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* =========================================================
   LOGIN POP-UPS (attempts left / locked)
   ========================================================= */
.popup-backdrop {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(10,10,10,.6);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: fadeIn .2s ease;
}
.popup {
  width: 100%; max-width: 360px; text-align: center;
  background: var(--surface); color: var(--text);
  border-radius: 20px; border-top: 5px solid var(--brand);
  padding: 28px 26px 24px; box-shadow: var(--shadow-lg);
  animation: pop .3s var(--ease);
}
.popup-icon {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-strong);
}
.popup h3 { margin: 0 0 8px; font-size: 18px; }
.popup p { margin: 0 0 20px; font-size: 14px; color: var(--gray); }
.popup .popup-ok { min-width: 120px; }

/* Locked version: red accents */
.popup-locked { border-top-color: var(--danger); }
.popup-locked .popup-icon { background: rgba(217,63,79,.12); color: var(--danger); }

/* Countdown under the login form */
.lock-note {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 0 14px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: rgba(217,63,79,.1); color: var(--danger); font-size: 13px; font-weight: 600;
}
.lock-note strong { font-variant-numeric: tabular-nums; font-size: 14px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================================================
   JOB CANCELLATION
   ========================================================= */
.status-cancelled { background: rgba(217,63,79,.12); color: var(--danger); }
.cancel-reason { margin: 8px 0 0; font-size: 12px; color: var(--gray); font-style: italic; }
.pill-btn.danger:hover { border-color: var(--danger); color: var(--danger); box-shadow: none; }

.reason-dialog {
  border: 0; padding: 0; border-radius: 20px; width: min(420px, calc(100% - 32px));
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
}
.reason-dialog::backdrop { background: rgba(10,10,10,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.reason-dialog[open] { animation: pop .25s var(--ease); }
.reason-dialog form { padding: 24px 24px 20px; border-top: 5px solid var(--danger); }
.reason-dialog h3 { margin: 0 0 2px; font-size: 18px; }
.reason-job { margin: 0 0 8px; font-weight: 700; color: var(--brand-strong); font-size: 14px; }
.reason-help { margin: 0 0 16px; font-size: 13px; color: var(--gray); }
.reason-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }

/* =========================================================
   REVIEWS & PROFILE
   ========================================================= */
.review-note p { margin: 0; color: var(--gray); font-size: 14px; }
.cancel-stats { margin-top: 6px; font-size: 13px; color: var(--danger); font-weight: 600; }

/* =========================================================
   PRIVACY: sign-up checkbox, notice page, footer link
   ========================================================= */
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 16px; font-size: 13px; font-weight: 500; cursor: pointer; }
.checkbox-row input { width: 18px; height: 18px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--brand-deep); }
.checkbox-row a { color: var(--brand-strong); font-weight: 700; }

.legal { max-width: 760px; }
.legal h1 { font-size: 30px; margin: 10px 0 4px; }
.legal-updated { color: var(--gray); font-size: 13px; margin: 0 0 22px; }
.legal h2 { font-size: 18px; margin: 30px 0 8px; }
.legal p, .legal li { font-size: 15px; line-height: 1.7; }
.legal ul { padding-left: 22px; margin: 0; }
.legal li { margin-bottom: 6px; }
.legal-box { background: var(--brand-soft); border-left: 4px solid var(--brand); padding: 14px 18px; border-radius: var(--radius-sm); font-size: 15px; }

footer a { color: var(--brand); font-weight: 600; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* =========================================================
   JOB APPLICATIONS
   ========================================================= */
.applicants { margin: 0 18px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); overflow: hidden; }
.applicants-head {
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gray);
}
.applicant { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.applicant:last-child { border-bottom: 0; }
.applicant-info { flex: 1; min-width: 0; }
.applicant-name { font-weight: 700; font-size: 14px; color: var(--text); text-decoration: none; }
.applicant-name:hover { text-decoration: underline; }
.applicant-stats { font-size: 12px; color: var(--gray); margin-top: 2px; }
.applicant-stats .warn { color: var(--danger); font-weight: 600; }
.applicant-note { margin: 6px 0 0; font-size: 13px; font-style: italic; }
.applicant-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.applicant-actions form { margin: 0; }
.applicants-empty { margin: 0; padding: 14px; font-size: 13px; color: var(--gray); }

.pill-btn.apply, .pill-btn.accept { background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-weight: 700; }
.pill-btn.apply:hover, .pill-btn.accept:hover { color: var(--on-brand); }

.app-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-left: 4px; }
.app-pending { background: var(--brand-soft); color: var(--brand-strong); }
.app-accepted { background: var(--ink); color: var(--brand); }
.app-declined, .app-closed { background: color-mix(in srgb, var(--text) 9%, transparent); color: var(--gray); }

.apply-dialog form { border-top-color: var(--brand); }

/* =========================================================
   PROFILE: JOB POST TABS
   ========================================================= */
.profile-actions { margin-top: 10px; }

.profile-tabs {
  display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; padding: 4px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  box-shadow: var(--shadow-sm); width: fit-content; max-width: 100%;
}
.ptab {
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  padding: 8px 16px; border: 0; border-radius: 999px; background: none; color: var(--gray);
  display: inline-flex; align-items: center; gap: 6px; transition: background .2s, color .2s;
}
.ptab:hover { color: var(--text); }
.ptab span {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--gray);
}
.ptab.active { background: var(--brand); color: var(--on-brand); }
.ptab.active span { background: var(--ink); color: var(--brand); }
.tab-panel { margin-bottom: 8px; }
.tab-panel[hidden] { display: none; }

.pjob {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow-sm);
  transition: border-color .2s, transform .25s var(--ease);
}
.pjob:hover { border-color: var(--brand); transform: translateX(4px); }
.pjob-main { flex: 1; min-width: 200px; }
.pjob-title { font-weight: 700; font-size: 15px; color: var(--text); text-decoration: none; }
a.pjob-title:hover { text-decoration: underline; }
.pjob-title.muted-title { color: var(--gray); text-decoration: line-through; }
.pjob-sub { font-size: 12px; color: var(--gray); margin-top: 2px; }
.pjob-sub a { color: var(--brand-strong); font-weight: 600; }
.pjob-reason { font-size: 12px; color: var(--danger); margin-top: 4px; font-style: italic; }
.pjob-side { display: flex; align-items: center; gap: 10px; }
.pjob-count { font-size: 12px; font-weight: 700; color: var(--gray); }

.review-hint { font-size: 13px; color: var(--gray); margin: -4px 4px 12px; }
.review .comment a, .review .meta a { color: var(--brand-strong); font-weight: 600; text-decoration: none; }
.review .comment a:hover, .review .meta a:hover { text-decoration: underline; }

/* =========================================================
   FEED: clickable poster name + highlighted job from a profile link
   ========================================================= */
.job-card a.who { display: block; color: var(--text); text-decoration: none; }
.job-card a.who:hover { text-decoration: underline; }
.job-card { scroll-margin-top: 90px; }
.job-card:target {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .45), var(--shadow-lg);
}

/* =========================================================
   FEED: SEARCH & FILTERS
   ========================================================= */
.feed-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.feed-filters input[type="text"] { flex: 1 1 200px; width: auto; border-radius: 999px; padding-left: 16px; }
.feed-filters select { flex: 0 1 170px; width: auto; border-radius: 999px; }
.feed-filters .btn { border-radius: 999px; padding: 10px 20px; }
.filter-check {
  display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0 14px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 999px;
}
.filter-check input { width: 16px; height: 16px; accent-color: var(--brand-deep); }
.filter-summary { font-size: 13px; color: var(--gray); margin: -6px 0 14px 4px; }
.filter-summary a, .empty-note a { color: var(--brand-strong); font-weight: 700; }

/* =========================================================
   RATE INPUT (₱ amount + per hour / per day / fixed)
   ========================================================= */
.rate-input {
  display: flex; align-items: stretch; overflow: hidden;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2);
  transition: border-color .2s, box-shadow .25s var(--ease);
}
.rate-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .28); }
.rate-input .peso {
  display: flex; align-items: center; padding: 0 12px;
  font-weight: 800; background: var(--brand-soft); color: var(--brand-strong);
}
.rate-input input {
  flex: 1; min-width: 0; padding: 11px 12px; border: 0; outline: none;
  background: transparent; color: var(--text); font: inherit; font-size: 14px;
}
.rate-input select {
  flex: 0 0 auto; width: auto; border: 0; border-left: 1px solid var(--border); border-radius: 0;
  background: transparent; box-shadow: none !important;
}
.rate-input input::-webkit-outer-spin-button,
.rate-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rate-input input[type="number"] { -moz-appearance: textfield; }

/* =========================================================
   EDIT JOB PAGE
   ========================================================= */
.existing-photos { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.existing-photo { display: flex; flex-direction: column; gap: 4px; width: 96px; margin: 0; font-size: 12px; font-weight: 600; cursor: pointer; }
.existing-photo img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 2px solid var(--border); transition: opacity .2s, border-color .2s; }
.existing-photo:has(input:checked) img { opacity: .35; border-color: var(--danger); }
.existing-photo span { display: flex; align-items: center; gap: 5px; }
.edit-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 6px; }

/* =========================================================
   REPORT LINK
   ========================================================= */
.report-link {
  margin-left: auto; padding: 4px 6px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 12px; color: var(--gray);
}
.report-link:hover { color: var(--danger); text-decoration: underline; }
.profile-actions { display: flex; align-items: center; gap: 10px; }
.profile-actions .report-link { margin-left: 0; }

/* =========================================================
   NOTIFICATIONS (bell)
   ========================================================= */
.notif-menu { position: relative; }
.notif-menu summary { list-style: none; }
.notif-menu summary::-webkit-details-marker { display: none; }
.notif-menu[open] summary { background: var(--brand); color: var(--on-brand); }

.notif-dropdown {
  position: absolute; right: -48px; top: calc(100% + 12px); z-index: 60;
  width: min(380px, calc(100vw - 24px));
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  transform-origin: top right; animation: pop .22s var(--ease);
}
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.notif-head strong { font-size: 15px; }
.notif-head form { margin: 0; }
.notif-head .link-btn {
  all: unset; cursor: pointer; font-size: 12px; font-weight: 700; color: var(--brand-strong);
}
.notif-head .link-btn::before { display: none; }
.notif-head .link-btn:hover { text-decoration: underline; }
.notif-list { max-height: 380px; overflow-y: auto; }

.notif-item, .notif-row {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px;
  text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.notif-item:hover, .notif-row:hover { background: var(--surface-2); }
.notif-item.unread, .notif-row.unread { background: var(--brand-soft); }
.notif-item.unread:hover, .notif-row.unread:hover { background: color-mix(in srgb, var(--brand-soft) 70%, var(--surface-2)); }
.notif-row:last-child { border-bottom: 0; }
.notif-icon {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--brand);
}
.notif-text { flex: 1; min-width: 0; font-size: 13px; line-height: 1.45; }
.notif-item .notif-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.notif-text small { display: block; font-size: 11px; color: var(--gray); margin-top: 2px; }
.notif-empty { margin: 0; padding: 24px 16px; text-align: center; font-size: 13px; color: var(--gray); }
.notif-all { display: block; padding: 11px; text-align: center; font-size: 13px; font-weight: 700; color: var(--brand-strong); text-decoration: none; }
.notif-all:hover { background: var(--surface-2); }
.notif-dot { flex-shrink: 0; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--danger); }

.notif-page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.notif-page-head form { margin: 0; }

/* Pagination (same look as the admin panel) */
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.pager-btn { font-size: 13px; font-weight: 700; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; }
.pager-btn:hover { border-color: var(--brand); }
.pager-btn.disabled { opacity: .45; pointer-events: none; }
.pager-info { font-size: 13px; color: var(--gray); }

/* =========================================================
   KEEP OPEN (job about to close) & DELETE ACCOUNT
   ========================================================= */
.pill-btn.keep-open { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; }

.danger-zone { border-color: rgba(217,63,79,.35); }
.danger-zone h2 { color: var(--danger); }
.danger-zone button[type="submit"] { background: var(--danger); color: #fff; box-shadow: 0 6px 16px -4px rgba(217,63,79,.5); }
.danger-zone button[type="submit"]:hover { box-shadow: 0 12px 24px -6px rgba(217,63,79,.55); }

@media (max-width: 500px) {
  .notif-dropdown { position: fixed; left: 12px; right: 12px; top: 70px; width: auto; }
}
/* ---------- Landing photo background ---------- */
body.landing { background: linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,.65)), url(heroimg.png) center / cover fixed no-repeat; }
.landing section { min-height: auto; background: transparent; }
.landing .hero { min-height: 100vh; background: transparent; }
.landing section { display: flex; flex-direction: column; justify-content: center; }
.landing .cta-inner { width: 100%; }
.landing .hero { align-content: center; color: #fff; }
.landing .hero h1, .landing .landing-section > h2 { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.45); }
.landing .hero h1 mark { background: none; color: #f9b900; padding: 0; }
.landing .hero .lead, .landing .section-lead { color: rgba(255,255,255,.82); }
.landing .hero .eyebrow { background: rgba(249,185,0,.12); color: #f9b900; border: 1px solid rgba(249,185,0,.4); }
.landing .hero .btn-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.landing .hero .btn-outline:hover { background: #f9b900; color: #111; box-shadow: inset 0 0 0 2px #f9b900; }
.landing section { padding-block: 2rem !important; }
.landing section h1, .landing section h2 { margin-bottom: .5rem; }
.landing section p { margin-bottom: .75rem; }
.landing .hero { min-height: calc(100vh - 71px); display: flex; align-items: center; padding-block: 0 !important; }
.landing .hero > div:first-child { flex: 1.2; }
.landing .hero > .hero-art { flex: .8; }
.landing .hero > div > :first-child { margin-top: 0; }
.landing .hero > div > :last-child { margin-bottom: 0; }
@media (max-width: 800px) {
  .landing .hero { flex-direction: column; justify-content: center; }
  .landing .hero > div:first-child, .landing .hero > .hero-art { flex: none; }
}

/* ---------- Follow ---------- */
.follow-btn, button.follow-btn[type="button"] { background: #f9b900; color: #111; border: 2px solid #f9b900; border-radius: 999px; padding: 5px 14px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; box-shadow: none; width: auto; margin: 0; flex-shrink: 0; }
.follow-btn.is-following, button.follow-btn.is-following[type="button"] { background: #111; color: #f9b900; border-color: #111; }
.follow-btn:hover { filter: brightness(1.08); }
.follow-btn:disabled { opacity: .6; cursor: wait; }
.follow-counts { display: flex; gap: 16px; margin-top: 8px; font-size: 14px; }
.follow-counts a { color: var(--text); text-decoration: none; }
.follow-counts a:hover { color: var(--brand-strong); }
.card-header .follow-btn { margin-left: 8px; padding: 2px 10px; font-size: 11px; }
.follow-info { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.follow-info a.member-name { color: var(--text); text-decoration: none; display: block; }
#follow-list:empty { display: none; }

/* ---------- Navbar link icons ---------- */
.nav-links a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.nav-links a svg { flex-shrink: 0; }
@media (max-width: 700px) {
  .nav-links { gap: 14px; }
  .nav-links a span { display: none; }
}

/* ---------- Logout button inside the profile menu ---------- */
.profile-menu .dropdown form button.logout { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0 0 9px 9px; margin-top: 4px; padding: 10px 14px; font: inherit; font-size: 14px; color: var(--danger); box-shadow: none; cursor: pointer; }
.profile-menu .dropdown form button.logout:hover { background: rgba(217,63,79,.1); transform: none; box-shadow: none; padding-left: 20px; }

/* ---------- Recommended work ---------- */
.rec-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.rec-row:last-child { border-bottom: 0; }
.rec-row .avatar { flex-shrink: 0; }
.rec-info { flex: 1; min-width: 0; }
.rec-title { display: block; font-size: 14px; overflow-wrap: anywhere; }
.rec-desc { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-match { font-size: 12px; color: var(--gray); margin-top: 2px; overflow-wrap: anywhere; }
.rec-view { display: inline-block; margin-top: 8px; padding: 4px 18px; border: 2px solid #f9b900; border-radius: 999px; color: var(--text); font-size: 12px; font-weight: 700; text-decoration: none; }
.rec-view:hover { background: #f9b900; color: #111; }
.rec-card button.rec-more[type="button"] { display: block; width: 100%; margin: 0; padding: 10px 0 0; background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; box-shadow: none; transform: none; color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.rec-empty { margin-bottom: 0; }
.rec-empty a { color: var(--brand-strong); font-weight: 700; }
#about-me { scroll-margin-top: 80px; }

/* ---------- Home profile sidebar ---------- */
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 16px; overflow: hidden; }
.side-profile { position: relative; text-align: center; }
.side-profile:hover { border-color: #f9b900; }
.side-banner { height: 64px; background: linear-gradient(120deg, #f9b900, #111); }
.side-cover-link { position: absolute; inset: 0; z-index: 1; }
.side-avatar { position: relative; width: 104px; margin: -48px auto 0; }
.side-avatar .avatar { margin: 0; }
.side-add { position: absolute; right: 2px; bottom: 2px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; background: #f9b900; color: #111; border: 2px solid var(--surface); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; text-decoration: none; }
.side-body { padding: 14px 16px 18px; overflow-wrap: anywhere; }
.side-name { display: block; font-size: 17px; }
.side-headline { font-size: 13px; margin-top: 2px; }
.side-muted { font-size: 12px; color: var(--gray); margin-top: 4px; }
.side-school { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 700; margin-top: 12px; }
.side-school svg { flex-shrink: 0; }
.side-stats a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; color: var(--text); text-decoration: none; font-size: 13px; font-weight: 700; }
.side-stats a + a { border-top: 1px solid var(--border); }
.side-stats a:hover { background: var(--brand-soft); }
.side-stats small { display: block; font-size: 12px; font-weight: 400; color: var(--gray); }
.side-count { color: #f9b900; font-size: 16px; }
#profile-photo { scroll-margin-top: 80px; }
/* The sidebar is taller now, so it scrolls by itself while stuck below the navbar */
@media (min-width: 801px) {
  .home-layout > div:last-child { max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; }
}

/* ---------- Home: profile card | feed | suggestions ---------- */
main.wide:has(.home-left) { max-width: 1240px; }
.home-layout:has(.home-left) { grid-template-columns: 240px minmax(0, 1fr) 300px; gap: 22px; }
.home-left { position: sticky; top: 88px; }
@media (max-width: 1080px) and (min-width: 801px) {
  .home-layout:has(.home-left) { grid-template-columns: 230px minmax(0, 1fr); }
  .home-layout:has(.home-left) > div:last-child { grid-column: 2; position: static; max-height: none; overflow: visible; }
  .home-left { grid-row: span 2; }
}
@media (max-width: 800px) {
  .home-layout:has(.home-left) { grid-template-columns: minmax(0, 1fr); }
  .home-left { position: static; order: 1; }
  .home-layout:has(.home-left) > div:last-child { order: 2; }
}

/* ---------- Sign-up steps, profile sections, skill chips ---------- */
body.auth:has(.reg-progress) { overflow-x: hidden; overflow-y: auto; }
.login-card.wide { max-width: 560px; }
.reg-progress { height: 8px; border-radius: 8px; background: var(--border); overflow: hidden; margin-bottom: 6px; }
.reg-progress span { display: block; height: 100%; width: 50%; background: #f9b900; transition: width .3s var(--ease); }
.reg-step-text { font-size: 12px; color: var(--gray); text-align: right; margin: 0 0 16px; }
.reg-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.reg-card h3 { margin: 0 0 4px; font-size: 16px; }
.reg-row + .reg-row { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 4px; }
.reg-field { display: block; font-size: 13px; font-weight: 600; margin-top: 10px; }
.reg-field input { display: block; width: 100%; margin-top: 4px; }
.reg-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.reg-check { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 13px; margin-top: 8px; }
.reg-check input { width: 16px; height: 16px; margin: 0; accent-color: #f9b900; }
.reg-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.reg-actions .btn { flex: 1; }
.reg-link { background: none; border: 0; padding: 0; margin-top: 10px; font: inherit; font-size: 13px; font-weight: 700; color: var(--brand-strong); cursor: pointer; }
.tag-box { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag-box input { flex: 1; min-width: 160px; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.tag-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #f9b900; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.tag-chip button { background: none; border: 0; padding: 0; font-size: 16px; line-height: 1; color: inherit; cursor: pointer; }
.sec-item { padding: 10px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.sec-muted { font-size: 12px; color: var(--gray); }
.sec-edit { margin-top: 8px; }
.sec-edit summary { display: inline-block; list-style: none; cursor: pointer; }
.sec-edit summary::-webkit-details-marker { display: none; }
.sec-edit form { margin-top: 10px; }
.sec-edit form > button[type="submit"] { margin-top: 12px; }
#education, #experience, #skills { scroll-margin-top: 80px; }
.reg-actions .reg-finish { order: 2; }

/* ---------- Contact info pop-up ---------- */
button.contact-link { background: none; border: 0; padding: 0; margin: 2px 0 8px; font: inherit; font-size: 14px; font-weight: 700; color: var(--brand-strong); cursor: pointer; }
button.contact-link:hover { text-decoration: underline; }
.contact-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--border); border-top: 4px solid #f9b900; border-radius: 12px; background: var(--surface); color: var(--text); }
.contact-dialog::backdrop { background: rgba(0,0,0,.65); }
.contact-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.contact-head h2 { margin: 0; font-size: 18px; }
.contact-head > div { display: flex; gap: 4px; }
button.contact-icon-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; border-radius: 50%; padding: 0; font-size: 24px; color: inherit; cursor: pointer; }
button.contact-icon-btn:hover { background: var(--brand-soft); }
.contact-list { list-style: none; margin: 0; padding: 8px 20px 18px; }
.contact-list[hidden], .contact-form[hidden] { display: none; }
.contact-list li { display: flex; gap: 14px; padding: 10px 0; }
.contact-list li > svg { flex-shrink: 0; margin-top: 2px; }
.contact-list li > div { min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.contact-list strong, .contact-list small { display: block; }
.contact-list small { color: var(--gray); }
.contact-list a { color: var(--brand-strong); font-weight: 600; }
button.contact-copy { display: block; margin-top: 4px; padding: 2px 12px; background: none; border: 2px solid #f9b900; border-radius: 999px; font: inherit; font-size: 12px; font-weight: 700; color: inherit; cursor: pointer; }
.contact-form { padding: 8px 20px 20px; }
.contact-form > button[type="submit"] { margin-top: 14px; width: 100%; }
