/* Site-wide lock: one font, one maroon, centred media and buttons.
   Loaded after main.css — do not fold this into main.css (FTP hangs).
   “No hostages” pass: decisive contrast, firm CTAs, mobile that doesn’t half-break. */

:root {
  --primary-dark: #2D0A0A;
  --primary-mid: #6B1A1A;
  --primary: #8B2020;
  --primary-light: #B03030;
  --primary-bright: #D94040;
  --accent: #E8A0A0;
  --bg: #E8E6E8;
  --surface: #F4F2F3;
  --border: #C9B8B8;
  --border-light: #D9CECE;
  --text-dark: #0F0404;
  --text-body: #1F0C0C;
  --text-muted: #4A2E2E;
  --text-light: #7A5555;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --btn-radius: 8px;
  --shadow: 0 2px 14px rgba(45, 10, 10, 0.14);
  --shadow-hover: 0 8px 28px rgba(45, 10, 10, 0.2);
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --icon-theme: var(--primary);
}

html.dark {
  --bg: #0E0A0A;
  --surface: #1A1212;
  --border: #3A2828;
  --border-light: #2A1C1C;
  --text-dark: #F8F0F0;
  --text-body: #EDE4E4;
  --text-muted: #B8A0A0;
  --text-light: #8A7070;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 10px 32px rgba(0, 0, 0, 0.55);
  --icon-theme: var(--primary-bright);
}

html,
body,
button,
input,
select,
textarea,
.btn,
.auth-card,
.honey-admin-page,
.about-page-body,
.employers-page-body {
  font-family: var(--font-sans, 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif);
}

.about-page-body,
.employers-page-body {
  color: var(--text-body, #2E1212);
  background: var(--bg, #EBEBED);
}

code,
kbd,
pre,
samp,
.ha-ip-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.btn,
.btn-sm,
.btn-xs,
.btn-lg,
.btn-outline,
.btn-primary {
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

input,
select,
textarea {
  font-family: inherit;
}

.header-left,
.header-actions,
.nav-links,
.site-header {
  align-items: center;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem 1rem;
}

/* Listing photos: whole image, centred. Circles stay cropped. */
.listing-thumb-media-photo,
.home-browse-thumb-top.listing-thumb-media-photo,
.job-card-thumb:not(.job-card-thumb-logo) {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg, #EBEBED);
}

html.dark .listing-thumb-media-photo,
html.dark .home-browse-thumb-top.listing-thumb-media-photo,
html.dark .job-card-thumb:not(.job-card-thumb-logo) {
  background: rgba(255, 255, 255, 0.04);
}

.listing-thumb-media-photo img,
.home-browse-thumb-top.listing-thumb-media-photo img,
.job-card-thumb:not(.job-card-thumb-logo) img,
.talent-card-cover img,
.talent-gallery-item img,
.talent-more-offer-thumb,
.employer-profile-gallery img {
  object-fit: contain;
  object-position: center center;
}

.listing-thumb-media-profile img,
.home-browse-thumb-top.listing-thumb-media-profile img,
.user-avatar img,
.talent-card-avatar img,
.seeker-recruiter-avatar img,
.ha-live-avatar {
  object-fit: cover;
  object-position: center center;
}

.listing-thumb-media-logo img,
.home-browse-thumb-top.listing-thumb-media-logo img,
.job-card-thumb-logo img {
  object-fit: contain;
  object-position: center center;
}

.auth-card h1,
.auth-card p,
.auth-credentials label {
  font-family: inherit;
}

.breadcrumb-path {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Global form CSS sets width:100% on all inputs — that turns checkboxes into fat boxes. */
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  height: auto;
  min-width: 1.05rem;
  min-height: 1.05rem;
  margin: 0 0.45rem 0 0;
  padding: 0;
  vertical-align: middle;
  flex-shrink: 0;
  accent-color: var(--primary, #8B2020);
}

label.ha-outreach-check {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border, #D8CCCC);
  border-radius: 8px;
  background: var(--surface, #F2F2F3);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-dark, #140606);
  cursor: pointer;
  white-space: normal;
}

label.ha-outreach-check input[type="checkbox"] {
  margin: 0;
}

.ha-outreach-send-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0.85rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light, #E0DADA);
}

/* Homepage browse: data-view wins. Never hide both list and grid after hard refresh. */
#home-browse-container[data-view="thumb"] .listings-list-only {
  display: none !important;
}
#home-browse-container[data-view="thumb"] .listings-thumb-only {
  display: grid !important;
}
#home-browse-container[data-view="list"] .listings-thumb-only {
  display: none !important;
}
#home-browse-container[data-view="list"] .listings-list-only {
  display: block !important;
}
#home-browse-container[data-view="thumb"].listings-list-view .listings-thumb-only {
  display: grid !important;
}
#home-browse-container[data-view="list"].listings-thumb-view .listings-list-only {
  display: block !important;
}

/* My hive — hiring toolkit tab must stay visible when that panel is active. */
.dashboard-tab-panel.is-active[data-dashboard-panel="toolkit"] {
  display: block !important;
}
.dashboard-tab-panel.is-active[data-dashboard-panel="toolkit"] .dashboard-hiring-toolkit {
  display: block !important;
  margin-bottom: 0;
}
.dashboard-tab-panel[data-dashboard-panel="toolkit"] .dashboard-toolkit-card-extra {
  display: flex !important;
}
.dashboard-tab-panel[data-dashboard-panel="toolkit"] .dashboard-toolkit-expand {
  display: none !important;
}

/* Employer trust tip on Edit profile (payers / hirers). */
.hive-employer-trust-tip {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid color-mix(in srgb, var(--primary, #8B2020) 22%, transparent);
  background: color-mix(in srgb, var(--primary, #8B2020) 6%, #fff);
  border-radius: var(--radius-md, 8px);
}
.hive-employer-trust-title {
  margin: 0.25rem 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary, #8B2020);
}
.hive-employer-trust-list {
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}
.hive-employer-trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.4;
}
.hive-employer-trust-list li i {
  margin-top: 0.2rem;
  color: var(--primary, #8B2020);
  flex-shrink: 0;
}
.member-profile-private-tag {
  font-style: normal;
  font-size: 0.85em;
  opacity: 0.75;
  font-weight: 500;
}

/* Hive Mail — short video attachments */
.chat-attachment-video {
  display: grid;
  gap: 0.4rem;
  max-width: min(100%, 320px);
}
.chat-attachment-video video {
  width: 100%;
  max-height: 280px;
  border-radius: var(--radius-md, 8px);
  background: #111;
  display: block;
}
.chat-attachment-video .chat-attachment-download {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
}

/* Subtle payment nudge — past free window / checkout whisper */
.listing-pay-whisper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin: 0.45rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-md, 8px);
  border: 1px solid color-mix(in srgb, var(--primary, #8B2020) 28%, transparent);
  background: color-mix(in srgb, var(--primary, #8B2020) 8%, transparent);
  color: var(--text-dark, #2E1212);
  font-size: 0.86rem;
  line-height: 1.4;
}
.listing-pay-whisper i {
  color: var(--primary, #8B2020);
  flex-shrink: 0;
}
.listing-pay-whisper-cta {
  margin-left: auto;
  border: 0;
  background: var(--primary, #8B2020);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.28rem 0.65rem;
  border-radius: var(--btn-radius, 8px);
  cursor: pointer;
  inline-size: auto;
}
.listing-pay-whisper-cta:hover {
  filter: brightness(1.06);
}
.tier-card-paid.tier-card-whisper .tier-card-inner {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary, #8B2020) 45%, transparent);
  animation: hive-tier-whisper 1.6s ease-in-out 2;
}
@keyframes hive-tier-whisper {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
.payment-pay-whisper {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.65rem 0 1rem;
  padding: 0;
  color: color-mix(in srgb, #fff 72%, transparent);
  font-size: 0.88rem;
  line-height: 1.4;
}
.payment-pay-whisper i {
  margin-top: 0.15rem;
  color: #fecaca;
  flex-shrink: 0;
}
.payment-order-until {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0.85;
}
html.dark .listing-pay-whisper {
  color: #f5e8e8;
}

/* KCB / tip pay channels */
.hive-pay-channels-label {
  margin: 0.85rem 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text-dark, #2E1212) 55%, transparent);
}
.hive-pay-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}
.hive-pay-channels li {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: var(--radius-md, 8px);
  border: 1px solid color-mix(in srgb, var(--primary, #8B2020) 22%, transparent);
  background: color-mix(in srgb, var(--primary, #8B2020) 7%, transparent);
  color: var(--text-dark, #2E1212);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
}
.hive-pay-channels-dark li {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #f3f4f6;
}
.payment-checkout .hive-pay-channels-label {
  color: #9ca3af;
}
.hive-pay-howto {
  margin: 0.35rem 0 0.75rem;
  border-radius: var(--radius-md, 8px);
  border: 1px solid color-mix(in srgb, var(--primary, #8B2020) 18%, transparent);
  background: color-mix(in srgb, var(--primary, #8B2020) 5%, transparent);
  padding: 0.45rem 0.65rem;
}
.hive-pay-howto summary {
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary, #8B2020);
  list-style: none;
}
.hive-pay-howto summary::-webkit-details-marker { display: none; }
.hive-pay-howto summary::before {
  content: '▸ ';
  display: inline-block;
  transition: transform 0.15s ease;
}
.hive-pay-howto[open] summary::before { transform: rotate(90deg); }
.hive-pay-howto ol {
  margin: 0.45rem 0 0.15rem 1.1rem;
  padding: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-dark, #2E1212);
}
.hive-pay-howto li { margin-bottom: 0.25rem; }
html.dark .hive-pay-channels-label { color: #c4b5b5; }
html.dark .hive-pay-channels li {
  color: #f5e8e8;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}
html.dark .hive-pay-howto {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
html.dark .hive-pay-howto summary { color: #fecaca; }
html.dark .hive-pay-howto ol { color: #e5e7eb; }

/* Job payment — Joombah-style sheet (HiveGigz maroon) */
.pay-sheet-page .job-payment-wrap,
.pay-sheet-wrap,
.pay-sheet-page .support-page {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 5rem;
}
.pay-sheet {
  background: #fff;
  color: #1f1414;
  border-radius: 16px;
  padding: 1.15rem 1rem 1.35rem;
  box-shadow: 0 10px 36px rgba(46, 18, 18, 0.08);
  border: 1px solid rgba(139, 32, 32, 0.08);
  font-family: var(--font-sans, 'Plus Jakarta Sans', system-ui, sans-serif);
}
.pay-sheet-layout {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.pay-sheet-col-side .pay-field-label:first-child {
  margin-top: 0.85rem;
}
.pay-checkout-rail {
  margin-top: 1rem;
  padding-top: 0.25rem;
}
.pay-guest-ok {
  display: inline;
  color: var(--primary, #8B2020);
  font-weight: 700;
}
.pay-sheet-lead {
  margin: 0 0 1.1rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #5c4545;
}
.pay-sheet-lead strong { color: #1f1414; }
.pay-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.9rem 1rem;
  margin-bottom: 1.1rem;
  border-radius: 10px;
  background: #f7f2f2;
  border-top: 3px solid var(--primary, #8B2020);
}
.pay-identity-label {
  display: block;
  font-size: 0.78rem;
  color: #7a6363;
  margin-bottom: 0.35rem;
}
.pay-identity-who {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.pay-identity-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.pay-identity-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary, #8B2020);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}
.pay-identity-copy {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.pay-identity-copy strong {
  font-size: 0.95rem;
  color: #1f1414;
}
.pay-identity-copy span {
  font-size: 0.82rem;
  color: #7a6363;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pay-identity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.84rem;
}
.pay-identity-actions a {
  color: var(--primary, #8B2020);
  font-weight: 600;
  text-decoration: none;
}
.pay-identity-actions a:hover { text-decoration: underline; }
.pay-sheet-whisper {
  color: #7a6363 !important;
  margin: 0 0 1rem !important;
}
.pay-sheet-whisper i { color: var(--primary, #8B2020) !important; }
.pay-field-label {
  display: block;
  margin: 1rem 0 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f1414;
}
.pay-textarea,
.pay-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e4d6d6;
  border-radius: var(--radius-md, 8px);
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: #1f1414;
  resize: vertical;
}
.pay-textarea:focus,
.pay-input:focus {
  outline: none;
  border-color: var(--primary, #8B2020);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary, #8B2020) 18%, transparent);
}
.pay-amount-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}
.pay-amount-chip {
  min-width: 5.5rem;
  padding: 0.75rem 1.1rem;
  border: 0;
  border-radius: var(--radius-md, 8px);
  background: #ece4e4;
  color: #1f1414;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: default;
}
.pay-amount-chip.is-selected {
  background: var(--primary, #8B2020);
  color: #fff;
}
.pay-amount-package {
  font-size: 0.85rem;
  color: #7a6363;
}
.pay-amount-hint {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: #8a7474;
}
.pay-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
@media (min-width: 480px) {
  .pay-method-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.pay-method-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 4.25rem;
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-md, 8px);
  border: 2px solid #e4d6d6;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pay-method-tile img {
  max-width: 88px;
  height: auto;
  display: block;
}
.pay-method-tile.is-selected {
  border-color: var(--primary, #8B2020);
  box-shadow: 0 0 0 1px var(--primary, #8B2020);
}
.pay-method-tile:disabled,
.pay-method-tile.is-soon {
  opacity: 0.72;
  cursor: not-allowed;
}
.pay-method-kcb {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--primary, #8B2020);
}
.pay-method-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.pay-method-mc { background: #eb001b; color: #fff; }
.pay-method-visa { background: #1a1f71; color: #fff; }
.pay-method-soon {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8a7474;
}
.pay-method-footnote {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #8a7474;
}
.pay-detail-panel {
  margin-top: 1.1rem;
  padding: 0.95rem 1rem;
  border-radius: 10px;
  background: #faf7f7;
  border: 1px solid #eee4e4;
}
.pay-detail-title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 800;
}
.pay-detail-lead {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #5c4545;
}
.pay-detail-steps {
  margin: 0.65rem 0 0.85rem 1.1rem;
  padding: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #5c4545;
}
.pay-detail-steps li { margin-bottom: 0.3rem; }
.pay-detail-panel .hive-pay-channels { margin-top: 0.65rem; }
.pay-bank-dl { margin: 0.5rem 0 0.65rem; }
.pay-bank-dl dt { color: #8a7474; }
.pay-bank-dl dd { color: #1f1414; }
.pay-terms {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 1.15rem 0 0.9rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #5c4545;
  cursor: pointer;
}
.pay-terms input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--primary, #8B2020);
  flex-shrink: 0;
}
.pay-terms a {
  color: var(--primary, #8B2020);
  font-weight: 600;
}
.pay-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.85rem;
  border-radius: var(--radius-md, 8px);
  background: #f0eaea;
  font-size: 0.95rem;
}
.pay-summary strong {
  font-size: 1.05rem;
  color: #1f1414;
}
.pay-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  border: 0;
  border-radius: var(--btn-radius, 8px);
  background: var(--primary, #8B2020);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
}
.pay-submit-btn:hover { filter: brightness(1.05); }
.pay-demo-btn { margin-top: 0.65rem; width: 100%; }
.pay-sheet-footnote {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: #8a7474;
  line-height: 1.4;
}
html.dark .pay-sheet {
  background: #1c1515;
  color: #f5e8e8;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
html.dark .pay-sheet-lead { color: #c4b5b5; }
html.dark .pay-sheet-lead strong,
html.dark .pay-identity-copy strong,
html.dark .pay-field-label,
html.dark .pay-detail-title,
html.dark .pay-summary strong,
html.dark .pay-bank-dl dd { color: #f5e8e8; }
html.dark .pay-identity { background: rgba(255, 255, 255, 0.05); }
html.dark .pay-identity-label,
html.dark .pay-identity-copy span,
html.dark .pay-amount-hint,
html.dark .pay-method-footnote,
html.dark .pay-sheet-footnote,
html.dark .pay-detail-lead,
html.dark .pay-detail-steps,
html.dark .pay-terms { color: #c4b5b5; }
html.dark .pay-textarea,
html.dark .pay-input {
  background: #151010;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f5e8e8;
}
html.dark .pay-amount-chip { background: rgba(255, 255, 255, 0.1); color: #f5e8e8; }
html.dark .pay-amount-chip.is-selected { background: var(--primary, #8B2020); color: #fff; }
html.dark .pay-method-tile {
  background: #151010;
  border-color: rgba(255, 255, 255, 0.14);
}
html.dark .pay-detail-panel {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}
html.dark .pay-summary { background: rgba(255, 255, 255, 0.08); }

/* Tip the hive — amount chips + custom field on pay-sheet */
.tip-sheet .pay-amount-chip {
  cursor: pointer;
  min-width: 4.75rem;
  flex: 1 1 calc(50% - 0.55rem);
}
@media (min-width: 480px) {
  .tip-sheet .pay-amount-chip { flex: 1 1 0; }
}
.tip-sheet .pay-amount-chip:not(:disabled):hover {
  filter: brightness(0.97);
}
.tip-custom-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.tip-custom-prefix {
  position: static;
  flex: 0 0 auto;
  font-size: 0.9rem;
  font-weight: 700;
  color: #8a7474;
  pointer-events: none;
}
.tip-custom-input {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 0;
}
.pay-identity-guest-copy {
  margin: 0;
  font-size: 0.88rem;
  color: #5c4545;
  line-height: 1.4;
  max-width: 28rem;
}
.tip-sheet-aside {
  margin-top: 1.25rem;
}
.tip-ref-note {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: #8a7474;
}
.pay-chip-main { display: block; }
.pay-chip-approx {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.75;
}
.pay-amount-chip.is-selected .pay-chip-approx { opacity: 0.9; }
.pay-summary-approx {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #8a7474;
}
a.pay-method-paypal {
  text-decoration: none;
  color: inherit;
}
a.pay-method-paypal:hover {
  border-color: #0070ba;
}
html.dark .pay-summary-approx,
html.dark .pay-chip-approx { color: #c4b5b5; }
html.dark .pay-identity-guest-copy,
html.dark .tip-ref-note { color: #c4b5b5; }
html.dark .tip-custom-prefix { color: #c4b5b5; }

/* Desktop: real two-column checkout; mobile stays stacked */
@media (min-width: 900px) {
  .pay-sheet-page .job-payment-wrap,
  .pay-sheet-wrap,
  .pay-sheet-page .support-page {
    max-width: 980px;
  }
  .pay-sheet {
    padding: 1.75rem 1.85rem 1.9rem;
  }
  .pay-sheet-lead {
    text-align: left;
    max-width: none;
    font-size: 1.05rem;
    margin-bottom: 1.35rem;
  }
  .pay-sheet-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
    gap: 1.75rem 2rem;
    align-items: start;
  }
  .pay-sheet-col-side {
    position: sticky;
    top: 5.5rem;
    padding: 1.1rem 1.15rem 1.2rem;
    border-radius: 12px;
    background: #faf7f7;
    border: 1px solid #eee4e4;
  }
  .pay-sheet-col-side .pay-field-label:first-child {
    margin-top: 0;
  }
  .pay-sheet-col-side .pay-detail-panel {
    background: #fff;
  }
  .pay-method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pay-checkout-rail {
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid #eadfdf;
  }
  .tip-sheet .pay-amount-chip {
    flex: 1 1 calc(25% - 0.55rem);
    min-width: 0;
  }
  .tip-sheet-aside {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
  }
  html.dark .pay-sheet-col-side {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
  }
  html.dark .pay-sheet-col-side .pay-detail-panel {
    background: #151010;
  }
  html.dark .pay-checkout-rail {
    border-top-color: rgba(255, 255, 255, 0.1);
  }
}

/* Narrow phones: compact stacked sheet */
@media (max-width: 899px) {
  .pay-sheet-page .job-payment-wrap,
  .pay-sheet-wrap,
  .pay-sheet-page .support-page {
    max-width: 560px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .pay-sheet-lead {
    text-align: left;
    font-size: 0.92rem;
  }
  .pay-method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pay-identity {
    flex-direction: column;
  }
}

/* Footer language + currency guide */
.site-footer-locale {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 0.65rem;
  padding: 0 0.75rem;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.82rem;
  line-height: 1.35;
  color: color-mix(in srgb, currentColor 72%, transparent);
  text-align: center;
}
.site-footer-currency {
  font-weight: 600;
}
.site-footer-lang {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.35rem;
}
.site-footer-lang-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-footer-lang-link:hover,
.site-footer-lang-link:focus-visible {
  border-bottom-color: currentColor;
}
.site-footer-lang-link.is-active {
  color: var(--primary, #8B2020);
  font-weight: 700;
  border-bottom-color: color-mix(in srgb, var(--primary, #8B2020) 55%, transparent);
}
.site-footer-lang-sep,
.site-footer-locale-sep {
  opacity: 0.55;
}
.promote-currency-note {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  color: color-mix(in srgb, currentColor 75%, transparent);
}
.language-currency-display {
  margin: 0.25rem 0 0.35rem;
  font-size: 1.05rem;
}

/* Settings → Location: Language & currency padding + responsive grid */
.language-currency-card {
  padding: 0;
  margin-top: 1rem;
  overflow: hidden;
}

.language-currency-inner {
  padding: 1.25rem 1.35rem 1.35rem;
  box-sizing: border-box;
}

.language-currency-grid {
  margin-bottom: 0.35rem;
}

.language-currency-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 0.15rem;
}

@media (max-width: 720px) {
  .language-currency-inner {
    padding: 1rem 1rem 1.15rem;
  }

  .language-currency-card .language-currency-grid.profile-pro-grid {
    grid-template-columns: 1fr;
  }

  .language-currency-actions {
    width: 100%;
  }

  .language-currency-actions .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .language-currency-inner {
    padding: 0.9rem 0.85rem 1rem;
  }
}
.pay-amount-chip .pay-chip-main {
  display: block;
}
.pay-amount-chip .pay-chip-approx {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.85;
}

/* Long-listing pay confirm on job form */
.hive-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(20, 10, 10, 0.55);
}
.hive-confirm-overlay[hidden] {
  display: none !important;
}
.hive-confirm-dialog {
  width: min(420px, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  box-sizing: border-box;
  background: #fff;
  color: #1a1a1a;
  border-radius: var(--radius-md, 8px);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
}
.hive-confirm-dialog h2 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  color: var(--primary, #8B2020);
}
.hive-confirm-dialog p {
  margin: 0 0 1rem;
  line-height: 1.45;
  font-size: 0.95rem;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.hb-confirm-card {
  width: min(400px, calc(100vw - 2rem)) !important;
  max-width: calc(100vw - 2rem) !important;
  box-sizing: border-box;
}
.hb-confirm-message {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.hive-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.hive-confirm-actions .btn {
  flex: 1 1 auto;
  min-width: 7rem;
  justify-content: center;
}
html.dark .hive-confirm-dialog {
  background: #1a1212;
  color: #f3ecec;
}

/* Pin HiveGigz quick-guide thread at top of Hive Mail */
.inbox-thread-row.inbox-thread-honeybee {
  order: -1;
  background: color-mix(in srgb, var(--primary, #8B2020) 6%, #fff);
  border: 1px solid color-mix(in srgb, var(--primary, #8B2020) 18%, transparent);
  border-radius: var(--radius-md, 8px);
}
.inbox-thread-list {
  display: flex;
  flex-direction: column;
}
.inbox-avatar-honeybee {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary, #8B2020);
  color: #fff;
}
.inbox-thread-pinned {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary, #8B2020);
  margin-left: 0.35rem;
}
html.dark .inbox-thread-row.inbox-thread-honeybee {
  background: color-mix(in srgb, var(--primary, #8B2020) 18%, #151010);
  border-color: color-mix(in srgb, var(--primary, #8B2020) 35%, transparent);
}
html.dark .inbox-thread-pinned {
  color: #e8b4b4;
}

/* Homepage thumbs: 2-line title clamp + actions pinned to card bottom */
#home-browse-thumb,
.listings-thumb-only {
  align-items: stretch;
}

#home-browse-thumb .listing-thumb-card,
.listings-thumb-view .listing-thumb-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#home-browse-thumb .listing-thumb-card-body,
.listings-thumb-view .listing-thumb-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 0.5rem;
}

#home-browse-thumb .listing-thumb-job-title,
.listings-thumb-view .listing-thumb-job-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  max-height: calc(1.3em * 2);
  word-break: break-word;
}

#home-browse-thumb .listing-thumb-meta,
.listings-thumb-view .listing-thumb-meta {
  flex: 0 0 auto;
}

#home-browse-thumb .home-browse-actions-bottom,
.listings-thumb-view .home-browse-actions-bottom {
  margin-top: auto;
  padding-top: 0.45rem;
}

/* Contact importance advice on auth / profile / talent forms */
.auth-contact-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md, 8px);
  border: 1px solid color-mix(in srgb, var(--primary, #8B2020) 22%, transparent);
  background: color-mix(in srgb, var(--primary, #8B2020) 7%, #fff);
  color: var(--text-dark, #1a1a1a);
}

.auth-contact-notice > i {
  color: var(--primary, #8B2020);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.auth-contact-notice-body {
  min-width: 0;
}

.auth-contact-notice-body strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.auth-contact-notice-body p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-muted, #6b7280);
}

.auth-contact-notice-compact {
  margin-top: 0.45rem;
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.7rem;
}

.auth-contact-notice-compact .auth-contact-notice-body strong {
  font-size: 0.84rem;
}

.auth-contact-notice-compact .auth-contact-notice-body p {
  font-size: 0.78rem;
}

html.dark .auth-contact-notice,
body.dark .auth-contact-notice {
  background: color-mix(in srgb, var(--primary, #8B2020) 16%, #1c1414);
  border-color: color-mix(in srgb, var(--primary, #8B2020) 35%, transparent);
  color: #f3f4f6;
}

html.dark .auth-contact-notice-body p,
body.dark .auth-contact-notice-body p {
  color: #c4c4c4;
}

/* Talent form: Post offer + Save to draft */
.talent-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.talent-form-actions .btn {
  margin: 0;
}

/* Talent go-live: advised vs required */
.talent-completeness-advise {
  margin-top: 0.85rem;
}

.talent-completeness-advise-list {
  opacity: 0.92;
}

/* Gallery crop / approve modal (mirrors avatar crop, 4:3) */
.gallery-crop-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gallery-crop-modal[hidden] {
  display: none !important;
}

.gallery-crop-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.gallery-crop-dialog {
  position: relative;
  width: min(100%, 420px);
  background: var(--card, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius-md, 8px);
  padding: 1rem 1.1rem 1.15rem;
  box-shadow: var(--shadow-lg, 0 12px 40px rgba(0, 0, 0, 0.18));
}

.gallery-crop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.gallery-crop-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.gallery-crop-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--gray-soft, #f3f4f6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted, #6b7280);
  flex-shrink: 0;
}

.gallery-crop-hint {
  margin: 0 0 0.75rem;
  font-size: 12px;
  color: var(--text-muted, #6b7280);
}

.gallery-crop-stage {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
  background: #111;
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
}

#gallery-crop-canvas {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  cursor: grab;
  touch-action: none;
}

#gallery-crop-canvas:active {
  cursor: grabbing;
}

.gallery-crop-zoom-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 13px;
  margin-bottom: 0.85rem;
}

.gallery-crop-zoom-label input {
  flex: 1;
}

.gallery-crop-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

body.gallery-crop-open {
  overflow: hidden;
}

html.dark .gallery-crop-dialog,
body.dark .gallery-crop-dialog {
  background: #1c1414;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f3f4f6;
}

html.dark .gallery-crop-close,
body.dark .gallery-crop-close {
  background: rgba(255, 255, 255, 0.08);
  color: #d1d5db;
}

/* ═══════════════════════════════════════════════
   NO HOSTAGES — colour / type / CTA / responsive
   ═══════════════════════════════════════════════ */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text-body);
}

h1, h2, h3, h4,
.hero h1,
.section-heading,
.form-header h1,
.talent-form-header h1,
.dashboard-section-header h1 {
  color: var(--text-dark);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

a:not(.btn):not(.badge) {
  color: var(--primary);
  text-underline-offset: 0.15em;
}

a:not(.btn):not(.badge):hover {
  color: var(--primary-mid);
}

/* CTAs: solid maroon, no soft ghosts (forms / heroes — not homepage browse chips) */
.btn:not(.browse-act),
.btn-sm:not(.browse-act),
.btn-xs:not(.browse-act),
.btn-lg:not(.browse-act) {
  border-radius: var(--btn-radius, 8px);
  font-weight: 700;
  letter-spacing: -0.01em;
  min-height: 2.65rem;
  padding-inline: 1.05rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

/* Homepage browse: word + emoji, not fat buttons */
.home-browse-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
}

.home-browse-actions .browse-act,
.home-browse-actions a.browse-act {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0;
  padding: 0.2rem 0.45rem;
  min-height: 0;
  min-width: 0;
  border: none;
  border-radius: 6px;
  background: transparent !important;
  box-shadow: none !important;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  color: var(--text-muted, #4A2E2E);
  transform: none !important;
}

.home-browse-actions .browse-act:hover {
  color: var(--primary, #8B2020);
  background: color-mix(in srgb, var(--primary, #8B2020) 8%, transparent) !important;
}

.home-browse-actions .browse-act-view {
  border: 1px solid color-mix(in srgb, var(--primary, #8B2020) 28%, transparent);
  color: var(--primary, #8B2020);
}

.home-browse-actions .browse-act-apply,
.home-browse-actions .browse-act-request {
  color: var(--primary, #8B2020);
  font-weight: 700;
  border-bottom: 1.5px solid color-mix(in srgb, var(--primary, #8B2020) 45%, transparent);
  border-radius: 0;
  padding-inline: 0.15rem;
}

.home-browse-actions .browse-act-apply:hover,
.home-browse-actions .browse-act-request:hover {
  border-bottom-color: var(--primary, #8B2020);
  background: transparent !important;
}

.home-browse-actions .browse-act-wa,
.home-browse-actions .browse-act-wa i {
  color: #25d366 !important;
}

.home-browse-actions .browse-act-call {
  color: var(--primary-dark, #2D0A0A);
}

/* Thumb cards: icon-only, corporate maroon — saves space */
.home-browse-actions-thumb {
  gap: 0.35rem;
  justify-content: center;
  width: 100%;
}

.home-browse-actions-thumb .talent-hire-actions {
  justify-content: center;
  width: 100%;
}

.home-browse-actions-thumb .browse-act,
.home-browse-actions-thumb a.browse-act,
.home-browse-actions-thumb .browse-act-icon {
  width: 1.9rem;
  height: 1.9rem;
  min-width: 1.9rem;
  min-height: 1.9rem;
  padding: 0;
  justify-content: center;
  align-items: center;
  border: none !important;
  border-radius: var(--radius-md, 8px);
  color: var(--primary, #8B2020) !important;
  background: transparent !important;
  font-size: 0.85rem;
  line-height: 1;
  box-shadow: none !important;
}

.home-browse-actions-thumb .browse-act-wa,
.home-browse-actions-thumb .browse-act-wa i {
  color: #25d366 !important;
}

.home-browse-actions-thumb .browse-act:hover,
.home-browse-actions-thumb .browse-act-icon:hover {
  background: color-mix(in srgb, var(--primary, #8B2020) 10%, transparent) !important;
  color: var(--primary-dark, #2D0A0A) !important;
}

.home-browse-actions-thumb .browse-act-apply,
.home-browse-actions-thumb .browse-act-request {
  background: transparent !important;
  color: var(--primary, #8B2020) !important;
}

.home-browse-actions-thumb .browse-act-apply:hover,
.home-browse-actions-thumb .browse-act-request:hover {
  background: color-mix(in srgb, var(--primary, #8B2020) 10%, transparent) !important;
  color: var(--primary-dark, #2D0A0A) !important;
}

.home-browse-actions-thumb .hire-action-label {
  display: none !important;
}

.home-browse-actions-thumb .job-card-fav-btn,
.home-browse-actions-thumb .job-save-btn.job-card-fav-btn {
  width: 1.9rem;
  height: 1.9rem;
  min-width: 1.9rem;
  min-height: 1.9rem;
  padding: 0;
  border: none !important;
  border-radius: var(--radius-md, 8px);
  color: var(--primary, #8B2020);
  background: transparent;
  font-size: 0.85rem;
  box-shadow: none;
}

.home-browse-actions-thumb .job-card-fav-btn:hover,
.home-browse-actions-thumb .job-card-fav-btn.is-active,
.home-browse-actions-thumb .job-card-fav-btn.is-saved {
  color: var(--primary-dark, #2D0A0A);
  background: color-mix(in srgb, var(--primary, #8B2020) 10%, transparent);
  border: none;
}

html.dark .home-browse-actions-thumb .browse-act,
html.dark .home-browse-actions-thumb .browse-act-icon,
html.dark .home-browse-actions-thumb .job-card-fav-btn {
  color: #fecaca !important;
  border: none !important;
  background: transparent !important;
}

html.dark .home-browse-actions-thumb .browse-act-apply,
html.dark .home-browse-actions-thumb .browse-act-request {
  background: transparent !important;
  color: #fecaca !important;
}

.home-browse-actions .job-card-fav-btn,
.home-browse-actions .job-save-btn.job-card-fav-btn {
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  padding: 0.15rem 0.35rem;
  border: none;
  background: transparent;
  border-radius: 6px;
  color: var(--text-muted, #4A2E2E);
  font-size: 0.95rem;
  box-shadow: none;
}

.home-browse-actions .job-card-fav-btn:hover,
.home-browse-actions .job-card-fav-btn.is-active,
.home-browse-actions .job-card-fav-btn.is-saved {
  color: var(--primary, #8B2020);
  background: color-mix(in srgb, var(--primary, #8B2020) 8%, transparent);
  border: none;
}

.home-browse-actions .talent-hire-actions {
  gap: 0.35rem 0.5rem;
  justify-content: flex-start;
}

.home-browse-actions .talent-hire-actions .btn {
  /* legacy safety if a btn still slips in */
  min-height: 0 !important;
  min-width: 0 !important;
  width: auto !important;
  padding: 0.2rem 0.4rem !important;
  font-size: 0.78rem !important;
  font-weight: 600;
  background: transparent !important;
  border: 1px solid color-mix(in srgb, var(--primary, #8B2020) 22%, transparent) !important;
  color: var(--text-dark, #0F0404) !important;
  box-shadow: none !important;
}

html.dark .home-browse-actions .browse-act {
  color: #c4b5b5;
}

html.dark .home-browse-actions .browse-act-view,
html.dark .home-browse-actions .browse-act-apply,
html.dark .home-browse-actions .browse-act-request {
  color: #fecaca;
}

html.dark .home-browse-actions .browse-act-wa,
html.dark .home-browse-actions .browse-act-wa i,
html.dark .home-browse-actions-thumb .browse-act-wa,
html.dark .home-browse-actions-thumb .browse-act-wa i {
  color: #25d366 !important;
}

.btn-primary,
.btn-primary-solid,
a.btn-primary-solid {
  background: var(--primary) !important;
  border: 1px solid var(--primary-dark) !important;
  color: #fff !important;
  box-shadow: 0 1px 0 rgba(45, 10, 10, 0.25);
}

.btn-primary:hover,
.btn-primary-solid:hover,
a.btn-primary-solid:hover {
  background: var(--primary-light) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  opacity: 1;
  transform: translateY(-1px);
}

.btn-primary:active,
.btn-outline:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent !important;
  border: 1.5px solid var(--primary) !important;
  color: var(--primary) !important;
}

.btn-outline:hover {
  background: color-mix(in srgb, var(--primary) 10%, transparent) !important;
  border-color: var(--primary-mid) !important;
  color: var(--primary-dark) !important;
}

html.dark .btn-outline {
  border-color: var(--primary-bright) !important;
  color: #fecaca !important;
}

html.dark .btn-outline:hover {
  background: rgba(217, 64, 64, 0.14) !important;
  color: #fff !important;
}

/* Surfaces: crisp edges, no mushy wash */
.card,
.table-card,
.auth-card,
.talent-form,
.talent-completeness,
.pro-gallery-upload,
.dashboard-subsection,
.job-form-card {
  border-radius: var(--radius-md, 8px);
  border-color: var(--border);
  background: var(--surface, #F4F2F3);
}

html.dark .card,
html.dark .table-card,
html.dark .auth-card,
html.dark .talent-form,
html.dark .talent-completeness,
html.dark .pro-gallery-upload,
html.dark .dashboard-subsection,
html.dark .job-form-card {
  background: var(--surface);
  border-color: var(--border);
}

.site-header {
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
  overflow: visible;
}

html:not(.dark) .site-header {
  background: color-mix(in srgb, #fff 88%, var(--primary) 4%);
}

html.dark .site-header {
  background: color-mix(in srgb, #0E0A0A 92%, var(--primary) 8%);
  border-bottom-color: #3A2828;
}

.site-logo,
.brand-name,
.logo-text {
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--primary) !important;
}

/* Form focus: unmistakable maroon ring */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
select:focus,
textarea:focus {
  border-color: var(--primary) !important;
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 28%, transparent);
}

/* Browse / listing rows: firm hover, readable type */
.home-browse-row,
.draft-row,
.listing-row,
.talent-mine-row {
  border-color: var(--border);
}

.home-browse-row:hover,
.draft-row:hover,
.listing-row:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  box-shadow: var(--shadow);
}

.home-browse-row .draft-card-title,
.listing-row .draft-card-title,
.talent-mine-main h2,
.job-card-title {
  color: var(--text-dark);
  font-weight: 700;
}

/* Mobile: take no half-measures */
@media (max-width: 768px) {
  .container,
  .talent-form-wrap,
  .talent-mine-wrap,
  .dashboard-wrap,
  .job-form-wrap {
    width: 100%;
    max-width: 100%;
    padding-left: max(0.85rem, env(safe-area-inset-left));
    padding-right: max(0.85rem, env(safe-area-inset-right));
  }

  .site-header {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
    gap: 0.65rem;
  }

  .btn,
  .btn-sm,
  .btn-outline,
  .btn-primary {
    min-height: 2.75rem;
  }

  .home-browse-actions .btn,
  .home-browse-actions .browse-act {
    min-height: 0 !important;
    min-width: 0 !important;
  }

  .talent-form-actions,
  .job-form-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .talent-form-actions .btn,
  .job-form-actions .btn {
    width: 100%;
  }

  /* Homepage hero CTAs — centred on mobile */
  .hero-cta-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
  }

  .hero-cta-row .btn,
  .hero-cta-row .btn-hero-find,
  .hero-cta-row .btn-hero-post,
  .hero-cta-row .btn-hero-post-secondary {
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    flex: 0 0 auto;
  }

  .home-browse-actions .browse-act {
    font-size: 0.78rem;
    padding: 0.15rem 0.35rem;
  }

  /* Icons only on thumb cards — never force hire labels back on */
  .home-browse-actions-thumb .hire-action-label,
  .home-browse-section .home-browse-actions-thumb .hire-action-label,
  .jobs-page .home-browse-actions-thumb .hire-action-label {
    display: none !important;
  }

  .form-row-2,
  .form-row-3 {
    grid-template-columns: 1fr !important;
  }

  .phone-row {
    flex-wrap: wrap;
  }

  .phone-row select,
  .phone-row input {
    min-width: 0;
    flex: 1 1 auto;
  }

  h1,
  .talent-form-header h1,
  .form-header h1 {
    font-size: clamp(1.45rem, 6.2vw, 1.85rem);
  }

  .talent-form-lead,
  .section-lead,
  .text-muted {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  /* Kill sideways scroll from wide toolbars / tables */
  .table-card,
  .listings-thumb-only,
  .home-browse-section,
  .dashboard-tabs,
  #dashboard-tabs {
    max-width: 100%;
  }

  .dashboard-tabs,
  #dashboard-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  img,
  video,
  canvas,
  iframe {
    max-width: 100%;
    height: auto;
  }

  .user-avatar img {
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
  }

  .site-logo-img {
    width: auto;
    height: 2.1rem;
    max-width: 140px;
    object-fit: contain;
  }
}

@media (max-width: 420px) {
  .btn-sm {
    font-size: 0.84rem;
    padding-inline: 0.85rem;
  }

  .site-header {
    height: auto;
    min-height: 64px;
    overflow: visible;
    flex-wrap: nowrap;
  }

  .header-actions,
  .user-menu,
  .user-menu-trigger,
  .user-avatar {
    flex-shrink: 0;
  }
}

/* Bottom nav: clear maroon active state */
.has-bottom-nav .bottom-nav a.is-active,
.has-bottom-nav .mobile-bottom-nav a.is-active,
.bottom-nav .nav-item.active,
.mobile-nav-item.is-active {
  color: var(--primary) !important;
}

.has-bottom-nav {
  padding-bottom: max(4.75rem, calc(3.75rem + env(safe-area-inset-bottom)));
}

/*
  Avatar menu scroll lock — soft only.
  Never use position:fixed on body (that pulls sticky .site-header off-screen).
*/
/* Avatar menu must not lock the document. overflow:hidden jumps the page
   to the top on phones and the sheet then opens off-screen. */
html.hive-scroll-locked,
body.hive-scroll-locked,
body.user-menu-open,
body.menu-open {
  overflow: visible !important;
  overscroll-behavior: auto;
}

html.hive-scroll-locked,
body.hive-scroll-locked {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: auto !important;
  height: auto !important;
  touch-action: auto;
}

/* Keep sticky top bar visible and clickable while the menu is open */
body.user-menu-open .site-header,
body.menu-open .site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1450 !important;
  overflow: visible !important;
}

#user-menu-panel {
  z-index: 1600 !important;
}

body.user-menu-open .user-menu-backdrop {
  z-index: 1500 !important;
}

#user-menu-panel .user-menu-panel-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

@media (max-width: 768px) {
  .site-header {
    flex-wrap: nowrap !important;
    height: auto !important;
    min-height: 64px;
    overflow: visible !important;
  }

  .user-avatar,
  .user-menu-trigger .user-avatar {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
  }

  body.user-menu-open #user-menu-panel {
    position: fixed !important;
    top: calc(4.75rem + env(safe-area-inset-top, 0px)) !important;
    right: 0.65rem !important;
    left: 0.65rem !important;
    bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    border-radius: 12px !important;
    border: 1px solid var(--border, #C9B8B8) !important;
    z-index: 1600 !important;
  }
}

/* Drafts — tighter empty state + card spacing (mobile + My hive) */
.mobile-workspace-page .mobile-workspace {
  margin-bottom: 1.25rem;
  padding-top: 0.15rem;
}

.mobile-workspace-header {
  margin-bottom: 0.35rem;
}

.mobile-workspace-header h1 {
  margin-bottom: 0.2rem;
}

.mobile-workspace-hint {
  margin: 0 0 0.65rem;
  line-height: 1.4;
}

.mobile-drafts-empty.empty-state,
.drafts-empty.empty-state,
#dashboard-tab-drafts .empty-state {
  padding: 1.1rem 0.85rem 1.25rem;
  margin: 0;
}

.mobile-drafts-empty h3,
.drafts-empty h3,
#dashboard-tab-drafts .empty-state h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.mobile-drafts-empty .mobile-workspace-hint,
.drafts-empty .dashboard-section-hint,
#dashboard-tab-drafts .empty-state p {
  margin: 0 0 0.85rem;
}

.mobile-card-list {
  gap: 0.55rem;
}

.mobile-workspace-card.draft-row,
.drafts-container .draft-row {
  padding: 0.7rem 0.75rem;
}

#drafts-section.card {
  padding: var(--card-pad, 1rem);
}

.drafts-section-hint {
  margin: 0 0 0.75rem;
}

/* ═══════════════════════════════════════════════
   SPACING RHYTHM — padding / gaps / look & feel
   ═══════════════════════════════════════════════ */

:root {
  --space-1: 0.35rem;
  --space-2: 0.55rem;
  --space-3: 0.85rem;
  --space-4: 1.15rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --page-pad-x: clamp(0.85rem, 3.2vw, 1.5rem);
  --page-pad-y: clamp(0.85rem, 2.4vw, 1.35rem);
  --card-pad: clamp(0.95rem, 2.4vw, 1.35rem);
  --section-gap: clamp(0.85rem, 2vw, 1.25rem);
}

.container {
  padding-left: var(--page-pad-x);
  padding-right: var(--page-pad-x);
}

.container.talent-form-wrap,
.container.talent-mine-wrap,
.container.talent-detail-wrap,
.container.talent-hire-wrap,
.job-form-page-wrap,
.dashboard-page .container,
.jobs-page-streamlined.container {
  padding-top: var(--page-pad-y);
  padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
}

/* Cards / panels — one padding language */
.card,
.table-card,
.talent-form,
.talent-completeness,
.pro-gallery-upload,
.dashboard-subsection,
.job-form-card,
.form-card,
.auth-card {
  padding: var(--card-pad);
}

.talent-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.talent-form-header {
  margin: 0 0 var(--space-4);
}

.talent-form-header h1 {
  margin: 0 0 var(--space-2);
}

.talent-form-lead {
  margin: 0;
  max-width: 38rem;
}

.talent-completeness {
  margin: 0 0 var(--section-gap);
}

.talent-form-layout {
  gap: var(--section-gap);
}

.talent-form-sidebar {
  gap: var(--section-gap);
}

.talent-form-field,
.form-field {
  gap: var(--space-2);
}

.talent-form-actions,
.job-form-actions {
  margin-top: var(--space-2);
  padding-top: var(--space-3);
  gap: var(--space-3);
}

.auth-card {
  margin-top: clamp(1.25rem, 4vw, 2.5rem);
  margin-bottom: clamp(1.25rem, 4vw, 2.5rem);
  max-width: 440px;
}

.form-card {
  padding: clamp(1.1rem, 2.8vw, 1.75rem);
}

/* Browse / results */
.home-results-header {
  padding: var(--space-4) var(--card-pad) var(--space-3);
}

.home-browse-row,
.draft-row,
.listing-row,
.talent-mine-row {
  padding: var(--space-3) var(--card-pad);
}

.draft-card-body,
.listing-row-body,
.talent-mine-main {
  padding: 0;
  gap: var(--space-1);
}

.home-browse-actions-bottom,
.talent-mine-actions,
.listing-row-actions {
  gap: var(--space-2);
  padding-top: var(--space-2);
}

/* Header breathing room */
.site-header {
  padding-left: var(--page-pad-x);
  padding-right: var(--page-pad-x);
}

.page-local-back,
.back-link {
  display: inline-flex;
  align-items: center;
  margin: 0 0 var(--space-3);
  padding: var(--space-1) 0;
}

/* Inputs: consistent inner padding */
.talent-form .form-field input,
.talent-form .form-field textarea,
.talent-form .form-field select,
.job-form-card input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.job-form-card select,
.job-form-card textarea,
.auth-card input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.auth-card select,
.auth-card textarea {
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md, 8px);
}

.talent-form .form-field textarea,
.job-form-card textarea {
  min-height: 8.5rem;
  line-height: 1.5;
}

.pro-gallery-header,
.pro-gallery-drop {
  padding: var(--space-3);
}

.pro-gallery-drop {
  margin-top: var(--space-2);
}

.talent-rate-fieldset {
  padding: var(--space-3);
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 8px);
}

.talent-rate-fieldset legend {
  padding: 0 var(--space-1);
}

/* Dashboard */
.dashboard-welcome-combined {
  padding: var(--card-pad);
  margin-bottom: var(--section-gap);
}

.dashboard-section-header {
  margin-bottom: var(--space-3);
  gap: var(--space-3);
}

.dashboard-msg,
.msg-success,
.msg-info,
.msg-warning,
.msg-error {
  padding: var(--space-3) var(--card-pad);
  margin-bottom: var(--space-3);
  border-radius: var(--radius-md, 8px);
}

@media (max-width: 768px) {
  :root {
    --card-pad: 1rem;
    --section-gap: 0.85rem;
  }

  .container,
  .talent-form-wrap,
  .talent-mine-wrap,
  .dashboard-wrap,
  .job-form-wrap,
  .job-form-page-wrap {
    padding-left: max(var(--page-pad-x), env(safe-area-inset-left));
    padding-right: max(var(--page-pad-x), env(safe-area-inset-right));
  }

  .card,
  .talent-form,
  .talent-completeness,
  .pro-gallery-upload,
  .job-form-card,
  .auth-card,
  .form-card {
    padding: var(--card-pad);
  }

  .home-browse-row,
  .draft-row,
  .listing-row,
  .talent-mine-row {
    padding: 0.85rem 0.95rem;
  }

  .talent-form-actions {
    margin-top: var(--space-3);
    padding-top: var(--space-4);
  }

  .site-header {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }
}

@media (max-width: 420px) {
  :root {
    --page-pad-x: 0.75rem;
    --card-pad: 0.9rem;
  }

  .btn,
  .btn-sm,
  .btn-outline,
  .btn-primary {
    padding-inline: 0.9rem;
  }
}

/* Phone cards: title and badges stay clear of the action buttons. */
@media (max-width: 768px) {
  .drafts-container .draft-row,
  .mobile-card-list .draft-row,
  .listings-card-list .draft-row,
  .listings-card-list .listing-row {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.55rem 0.65rem;
    overflow: visible;
  }

  .drafts-container .draft-card-body,
  .drafts-container .draft-card-body-inline,
  .mobile-card-list .draft-card-body,
  .listings-card-list .draft-card-body,
  .listings-card-list .listing-row-body {
    flex: 1 1 calc(100% - 3.4rem);
    min-width: 0;
    width: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .draft-card-title,
  .home-browse-job-title {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }

  .draft-card-meta,
  .listing-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.4rem;
    max-width: 100%;
  }

  .drafts-container .draft-card-actions,
  .mobile-card-list .draft-card-actions,
  .listings-card-list .home-browse-actions,
  .draft-row .listing-card-actions {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    margin-top: 0.15rem;
  }

  .draft-card-actions > .btn,
  .draft-card-actions > form,
  .draft-card-actions .draft-delete-form,
  .draft-card-actions .draft-publish-form,
  .draft-card-actions .draft-repost-form,
  .listings-card-list .home-browse-actions > .btn,
  .listings-card-list .home-browse-actions > form {
    width: 100%;
    min-width: 0;
    margin: 0;
    justify-self: stretch;
  }

  .draft-card-actions .btn,
  .listings-card-list .home-browse-actions .btn {
    width: 100%;
    min-height: 2.4rem;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
    padding-block: 0.4rem;
  }

  .draft-card-actions .draft-delete-form,
  .draft-card-actions .draft-delete-form .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .job-form-actions,
  .talent-form-actions,
  .hive-confirm-actions {
    flex-wrap: wrap;
    width: 100%;
    gap: 0.45rem;
  }

  .job-form-actions .btn,
  .talent-form-actions .btn,
  .hive-confirm-actions .btn,
  .job-form-actions form,
  .talent-form-actions form {
    flex: 1 1 100%;
    width: 100%;
    justify-content: center;
    margin: 0;
  }

  .dashboard-tabs,
  #dashboard-tabs {
    gap: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .dashboard-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}
