/* Jainjob.in Portal — navy + gold, logo-agnostic
   Fonts: Plus Jakarta Sans (display) + Source Sans 3 (body) */

   :root {
    --brand: #0b1d4a;
    --brand-dark: #071433;
    --brand-mid: #3a4f7a;
    --brand-soft: #eef1f7;
    --accent: #c9a227;
    --accent-dark: #a6851c;
    --accent-soft: #f7efd4;
    --cream: #f8f6f1;
    --bg: #f8f6f1;
    --bg-pattern: #eeeae2;
    --surface: #ffffff;
    --text: #12182a;
    --muted: #5c6370;
    --border: #e3dfd6;
    --danger: #b91c1c;
    --danger-bg: #fef2f2;
    --success: #166534;
    --success-bg: #f0fdf4;
    --focus: #c9a227;
    --radius: 14px;
    --shadow: 0 16px 48px rgba(11, 29, 74, 0.10);
    --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
    --font-body: "Source Sans 3", system-ui, sans-serif;
    --touch: 48px;
    --z-header: 40;
    --z-overlay: 50;
    --max: 1100px;
  }
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    overflow-x: clip;
  }
  
  body {
    margin: 0;
    min-height: 100dvh;
    max-width: 100%;
    overflow-x: clip;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.55;
    color: var(--text);
    background:
      radial-gradient(1100px 480px at 8% -8%, var(--accent-soft), transparent 58%),
      radial-gradient(900px 420px at 100% 0%, var(--brand-soft), transparent 55%),
      linear-gradient(180deg, var(--bg) 0%, #ffffff 58%, var(--bg-pattern) 100%);
    display: flex;
    flex-direction: column;
  }
  
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
  
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  
  .skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 100;
    background: var(--brand);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
  }
  .skip-link:focus {
    top: 1rem;
  }
  
  /* ——— Header ——— */
  .portal-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: rgba(255, 253, 248, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    animation: fadeDown 280ms ease-out;
  }
  
  .portal-header__inner {
    position: relative;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  
  @keyframes fadeDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .portal-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    min-height: var(--touch);
  }
  
  .portal-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 2px var(--accent-soft), 0 4px 14px rgba(11, 29, 74, 0.16);
  }
  
  .portal-brand__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
  }
  
  .portal-brand__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--brand);
    letter-spacing: -0.02em;
  }
  
  .portal-brand__tag {
    font-size: 0.8rem;
    color: var(--muted);
  }
  
  .nav-toggle {
    display: none;
    width: var(--touch);
    height: var(--touch);
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
  }
  
  .nav-toggle__bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--brand);
    border-radius: 1px;
  }
  
  .portal-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
  }
  
  .portal-nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--brand-mid);
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 180ms ease, color 180ms ease;
    cursor: pointer;
  }
  
  .portal-nav__link:hover,
  .portal-nav__link:focus-visible {
    background: var(--brand-soft);
    color: var(--brand);
    outline: none;
  }
  
  .portal-nav__link.is-active {
    background: var(--brand);
    color: #fff;
  }
  
  .portal-nav__wa {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 40px;
    height: 40px;
    padding: 0 0.95rem;
    margin-left: 0;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: transform 180ms ease, filter 180ms ease;
  }
  
  .portal-nav__wa:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
  }

  .portal-nav__social {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0.45rem;
    margin-right: 0.45rem;
    padding-right: 0.55rem;
    border-right: 1px solid rgba(11, 29, 74, 0.1);
  }

  .portal-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--brand);
    background: #fff;
    border: 1px solid rgba(11, 29, 74, 0.1);
    box-shadow: 0 1px 2px rgba(11, 29, 74, 0.04);
    transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
    flex-shrink: 0;
  }

  .portal-social svg {
    display: block;
    width: 18px;
    height: 18px;
  }

  .portal-social--ig:hover,
  .portal-social--ig:focus-visible {
    color: #c13584;
    border-color: rgba(193, 53, 132, 0.35);
    background: #fff5fa;
    outline: none;
    transform: translateY(-1px);
  }

  .portal-social--fb:hover,
  .portal-social--fb:focus-visible {
    color: #1877f2;
    border-color: rgba(24, 119, 242, 0.35);
    background: #f0f6ff;
    outline: none;
    transform: translateY(-1px);
  }

  .footer-social {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }

  .footer-social .portal-social {
    width: 36px;
    height: 36px;
  }

  .footer-social .portal-social svg {
    width: 16px;
    height: 16px;
  }
  
  @media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .portal-nav {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      flex-direction: column;
      align-items: stretch;
      padding: 0.75rem 1.25rem 1.25rem;
      background: var(--bg);
      border-bottom: 1px solid var(--border);
      box-shadow: var(--shadow);
    }
    .portal-nav.is-open { display: flex; }
    .portal-nav__link,
    .portal-nav__wa {
      width: 100%;
      justify-content: center;
      min-height: var(--touch);
      height: auto;
    }
    .portal-nav__wa { margin-left: 0; margin-top: 0.35rem; }
    .portal-nav__social {
      justify-content: center;
      margin: 0.5rem 0 0;
      padding: 0;
      border-right: none;
      width: 100%;
      gap: 0.5rem;
    }
  }
  
  /* ——— Main ——— */
  .portal-main {
    flex: 1;
    width: 100%;
    min-width: 0;
    max-width: min(var(--max), 100%);
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
  }

  .page-home .portal-main {
    max-width: none;
    padding: 0 0 3rem;
  }
  
  /* ——— Home banner + actions ——— */
  .home-banner {
    position: relative;
    width: 100%;
    height: min(52dvh, 380px);
    min-height: 220px;
    overflow: hidden;
    background: var(--brand-dark);
    isolation: isolate;
    box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.55);
  }

  .home-banner--ads {
    height: min(56dvh, 440px);
    min-height: 240px;
  }

  .home-banner__slides {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .home-banner__slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    color: inherit;
    text-decoration: none;
    transition: opacity 520ms ease, visibility 520ms ease;
  }

  .home-banner__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
  }

  .home-banner__slide--link {
    cursor: pointer;
  }

  .home-banner__slide:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: -6px;
  }

  .home-banner__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.04);
    transition: transform 6.5s ease-out;
  }

  .home-banner__slide.is-active .home-banner__img {
    transform: scale(1);
  }

  .home-banner__shade {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(7, 20, 51, 0.08) 0%, transparent 38%, rgba(7, 20, 51, 0.72) 100%);
    pointer-events: none;
  }

  .home-banner__copy {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.35rem;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    pointer-events: none;
  }

  .home-banner__ad-title {
    margin: 0;
    max-width: 18ch;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 3.4vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }

  .home-banner__cta {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #f3c56b, var(--accent));
    color: var(--brand-dark);
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 24px rgba(11, 29, 74, 0.28);
  }

  .home-banner__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(11, 29, 74, 0.38);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
  }

  .home-banner__nav--prev { left: 0.7rem; }
  .home-banner__nav--next { right: 0.7rem; }

  .home-banner__nav:hover,
  .home-banner__nav:focus-visible {
    background: rgba(11, 29, 74, 0.62);
    outline: none;
  }

  .home-banner__dots {
    position: absolute;
    left: 50%;
    bottom: 0.55rem;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.15rem;
    padding: 0.15rem 0.35rem;
    border-radius: 999px;
    background: rgba(7, 20, 51, 0.38);
    backdrop-filter: blur(10px);
  }

  .home-banner__dot {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    position: relative;
  }

  .home-banner__dot::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.45);
    transition: width 180ms ease, background 180ms ease;
  }

  .home-banner__dot.is-active::after {
    width: 22px;
    background: var(--accent);
  }

  .home-banner__dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }

  .home-banner__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    height: 3px;
    background: rgba(255, 255, 255, 0.18);
  }

  .home-banner__progress-bar {
    display: block;
    height: 100%;
    width: 100%;
    transform-origin: left center;
    transform: scaleX(0);
    background: var(--accent);
  }

  @keyframes bannerProgress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }

  @media (min-width: 900px) {
    .home-banner,
    .home-banner--ads {
      height: min(62dvh, 560px);
      min-height: 360px;
    }
    .home-banner__copy {
      left: 2rem;
      right: 2rem;
      bottom: 1.75rem;
    }
    .home-banner__nav--prev { left: 1.1rem; }
    .home-banner__nav--next { right: 1.1rem; }
  }

  @media (prefers-reduced-motion: reduce) {
    .home-banner__img,
    .home-banner__slide.is-active .home-banner__img {
      transform: none;
      transition: none;
    }
    .home-banner__progress-bar {
      animation: none !important;
    }
  }

  .home-banner__promo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 1.5rem 1.25rem;
    text-align: center;
    color: #fff;
    background:
      radial-gradient(900px 420px at 50% -10%, rgba(201, 162, 39, 0.22), transparent 58%),
      radial-gradient(700px 380px at 88% 110%, rgba(18, 184, 168, 0.18), transparent 55%),
      linear-gradient(165deg, #16306e 0%, var(--brand) 46%, var(--brand-dark) 100%);
    box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 0 8px var(--brand-dark);
  }

  .home-banner__kicker {
    margin: 0 0 0.55rem;
    font-family: var(--font-display);
    font-size: clamp(0.8rem, 1.6vw, 0.95rem);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
  }

  .home-banner__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 5.4vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
    max-width: 16ch;
  }

  .home-banner__sub {
    margin: 0.7rem 0 0;
    font-size: clamp(0.95rem, 2.2vw, 1.2rem);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f3e6b5;
  }

  .home-banner__badge {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    margin-top: 1.15rem;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #f3c56b, var(--accent));
    color: var(--brand-dark);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  @media (max-width: 600px) {
    .home-banner:not(.home-banner--ads) {
      height: min(46dvh, 340px);
      min-height: 220px;
    }
    .home-banner__promo {
      box-shadow: inset 0 0 0 2px var(--accent), inset 0 0 0 6px var(--brand-dark);
      padding: 1.15rem 0.9rem;
    }
  }

  .home-panel {
    max-width: var(--max);
    margin: 0 auto;
    padding: 1.75rem 1.25rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeUp 400ms ease-out;
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .home-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    margin: 0 0 2rem;
    padding: 0;
  }
  
  .home-stats__item {
    min-width: 7.5rem;
    margin: 0;
    padding: 0.85rem 1.35rem;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }
  
  .home-stats__item dt {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }
  
  .home-stats__item dd {
    margin: 0.2rem 0 0;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--brand);
    line-height: 1.1;
  }
  
  .home-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
  }
  
  /* ——— Buttons ——— */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: var(--touch);
    padding: 0.65rem 1.35rem;
    border-radius: 12px;
    border: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
  }
  
  .btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
  }
  
  .btn--primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 24px rgba(11, 29, 74, 0.26);
  }
  .btn--primary:hover:not(:disabled) {
    background: var(--brand-dark);
    transform: translateY(-1px);
  }
  
  .btn--accent {
    background: var(--accent);
    color: var(--brand-dark);
    box-shadow: 0 8px 24px rgba(212, 168, 75, 0.35);
  }
  .btn--accent:hover:not(:disabled) {
    background: var(--brand);
    color: #fff;
    transform: translateY(-1px);
  }
  
  .btn--secondary {
    background: var(--surface);
    color: var(--brand);
    border: 1.5px solid var(--border);
  }
  .btn--secondary:hover:not(:disabled) {
    border-color: var(--accent);
    background: var(--accent-soft);
  }
  
  .btn--ghost {
    background: transparent;
    color: var(--brand-mid);
    border: 1px solid transparent;
  }
  .btn--ghost:hover:not(:disabled) {
    background: var(--brand-soft);
  }
  
  .btn--wa {
    background: #25d366;
    color: #fff;
  }
  .btn--wa:hover:not(:disabled) {
    filter: brightness(1.05);
  }
  
  .btn:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
  }
  
  .btn__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
  }
  .btn.is-loading .btn__label { opacity: 0.7; }
  .btn.is-loading .btn__spinner { display: inline-block; }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  /* ——— Page sections ——— */
  .page-head {
    margin-bottom: 1.5rem;
    animation: fadeUp 320ms ease-out;
  }
  
  .page-head__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.1rem);
    color: var(--brand);
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
  }
  
  .page-head__lead {
    margin: 0;
    color: var(--muted);
    max-width: 40em;
  }
  
  .page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
  }
  
  /* ——— Filters ——— */
  .filters {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 20px rgba(11, 29, 74, 0.04);
    min-width: 0;
    max-width: 100%;
  }
  
  .filters__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.85rem;
  }
  
  .filters__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
    align-items: center;
  }
  
  .field label,
  .field .field-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--brand);
    margin-bottom: 0.35rem;
  }
  
  .field input,
  .field select,
  .field textarea {
    width: 100%;
    min-height: var(--touch);
    padding: 0.65rem 0.85rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font: inherit;
    color: var(--text);
    background: #fff;
    transition: border-color 150ms ease, box-shadow 150ms ease;
  }
  
  .field input:focus,
  .field select:focus,
  .field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
  }
  
  .field-hint {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: var(--muted);
  }
  
  .field-error {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: var(--danger);
  }
  
  .req { color: var(--danger); }
  
  .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }
  
  @media (max-width: 560px) {
    .field-row { grid-template-columns: 1fr; }
  }
  
  /* ——— Listings ——— */
  .results-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    color: var(--brand);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
  }
  
  .results-meta.is-idle {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
  }
  
  .listing-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    max-width: 100%;
  }
  
  .listing {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  }
  
  .listing:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
  }
  
  .listing__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem 1rem;
    margin-bottom: 0.5rem;
  }
  
  .listing__heading {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    min-width: 0;
    flex: 1;
  }
  
  .listing__no {
    flex: 0 0 auto;
    min-width: 1.85rem;
    height: 1.85rem;
    padding: 0 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
  }
  
  .listing__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--brand);
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  
  .listing__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.8rem;
    font-weight: 600;
  }
  
  .listing__badge--hire {
    background: var(--brand-soft);
    color: var(--brand);
  }
  
  .listing__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin: 0.35rem 0;
    color: var(--muted);
    font-size: 0.92rem;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  
  .listing__details {
    margin: 0.5rem 0;
    color: var(--text);
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .listing__link {
    color: var(--brand);
    font-weight: 600;
    text-decoration: underline;
    word-break: break-all;
  }

  .listing__link:hover {
    text-decoration: none;
  }

  .listing__link-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    margin-top: 0.4rem;
  }

  .listing__copy-link {
    font-size: 0.82rem;
    padding: 0.2rem 0.6rem;
  }
  
  .listing__phone {
    font-weight: 600;
    color: var(--brand);
    font-variant-numeric: tabular-nums;
  }
  
  .listing__phone--locked {
    font-weight: 500;
    font-style: italic;
    font-variant-numeric: normal;
    color: var(--muted);
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  
  .listing__contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.75rem;
  }
  
  .listing__call {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    font-variant-numeric: tabular-nums;
  }
  
  .listing__call:hover {
    text-decoration: underline;
  }
  
  .listing__wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    flex-shrink: 0;
    text-decoration: none;
  }
  
  .listing__wa:hover {
    filter: brightness(1.08);
  }
  
  .listing__icon {
    display: block;
    flex-shrink: 0;
  }
  
  .listing__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
  }
  
  .empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--muted);
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
  }
  
  .infinite-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.25rem;
    min-height: 1px;
  }
  
  .infinite-status__loading,
  .infinite-status__end {
    margin: 0;
    padding: 0.35rem 0 0.85rem;
    color: var(--muted);
    font-size: 0.95rem;
    text-align: center;
  }
  
  .infinite-status__loading {
    cursor: pointer;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* display:flex above overrides the HTML [hidden] attribute — force hide */
  .infinite-status__loading[hidden],
  .infinite-status__end[hidden] {
    display: none !important;
  }
  
  .infinite-status__sentinel {
    width: 100%;
    height: 1px;
  }
  
  /* ——— Forms (portal post) ——— */
  .app-form,
  .portal-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem 1.4rem 1.6rem;
    box-shadow: var(--shadow);
    max-width: 100%;
    width: 100%;
  }
  
  .form-section {
    border: none;
    margin: 0 0 1.25rem;
    padding: 0;
  }
  
  .form-section__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--brand);
    margin: 0 0 1rem;
    padding: 0;
  }
  
  .form-section--reveal[hidden] { display: none; }
  
  .section-continue {
    margin-top: 1.15rem;
  }
  
  .form-actions {
    margin-top: 1rem;
  }
  
  .form-actions__note {
    margin: 0.65rem 0 0;
    font-size: 0.9rem;
    color: var(--muted);
  }
  
  .otp-row {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    align-items: stretch;
  }
  
  .otp-row input { flex: 1; min-width: 140px; }
  
  .otp-row .btn {
    flex: 0 0 auto;
  }
  
  .link-btn {
    background: none;
    border: none;
    color: var(--brand-mid);
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
    padding: 0;
  }
  
  .otp-verified,
  .otp-verified-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    color: #1f6b3a;
    font-weight: 600;
    margin: 0.65rem 0 0;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    background: #eef8f1;
    border: 1px solid #b7dfc4;
  }
  
  .otp-verified-banner__text {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
  }
  
  .form-alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid #fecaca;
  }
  
  .form-alert--ok {
    background: var(--success-bg);
    color: var(--success);
    border-color: #bbf7d0;
  }
  
  /* ——— Auth pages ——— */
  .auth-alt {
    margin: 1.15rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.95rem;
    color: var(--muted);
  }
  
  .auth-alt__link {
    display: inline-block;
    margin-left: 0.2rem;
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1.5px solid var(--accent);
    transition: color 150ms ease, border-color 150ms ease;
  }
  
  .auth-alt__link:hover,
  .auth-alt__link:focus-visible {
    color: var(--brand-mid);
    border-bottom-color: var(--brand);
    outline: none;
  }
  
  .success-panel {
    text-align: center;
    padding: 2rem 1.25rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    max-width: 480px;
    margin: 0 auto;
  }
  
  .success-panel__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--success-bg);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .success-panel__title {
    font-family: var(--font-display);
    color: var(--brand);
    margin: 0 0 0.5rem;
  }
  
  .success-panel__text { color: var(--muted); }
  
  .success-panel__id {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--brand);
    margin: 0.75rem 0 1.25rem;
  }
  
  .step-nav {
    margin-bottom: 1.25rem;
    overflow-x: auto;
  }
  
  .step-nav__list {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: max-content;
  }
  
  .step-nav__item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
  }
  
  .step-nav__item.is-active {
    background: var(--brand);
    color: #fff;
  }
  
  .step-nav__item.is-done {
    background: var(--accent-soft);
    color: var(--accent-dark);
  }
  
  .step-nav__num {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    font-size: 0.75rem;
    font-weight: 700;
  }
  
  .spinner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 29, 74, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-overlay);
  }
  
  .spinner-overlay[hidden] {
    display: none !important;
  }
  
  .spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255,255,255,0.35);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
  }
  
  /* ——— Footer ——— */
  .portal-footer {
    border-top: 1px solid var(--border);
    background: #f6f2ea;
    margin-top: auto;
  }

  .portal-footer__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 1.1rem 1.25rem calc(1.1rem + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem 1.25rem;
    color: var(--muted);
    font-size: 0.875rem;
    text-align: center;
  }

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

  .portal-footer a:hover,
  .portal-footer a:focus-visible {
    color: var(--accent-dark);
    outline: none;
  }

  .portal-footer a:focus-visible {
    border-radius: 6px;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 45%, transparent);
  }

  .footer-copy {
    margin: 0;
    line-height: 1.5;
  }

  .footer-copy__sep {
    margin: 0 0.4rem;
    opacity: 0.5;
  }

  .footer-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.65rem;
  }

  .footer-help {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 36px;
    color: var(--brand-mid);
  }

  .footer-help svg {
    flex: 0 0 16px;
    color: #25d366;
  }

  .footer-bar__sep {
    width: 1px;
    height: 14px;
    background: var(--border);
    flex-shrink: 0;
  }

  .portal-footer .footer-credit {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--muted);
    font-weight: 400;
  }

  .portal-footer .footer-credit a {
    font-weight: 600;
  }

  @media (min-width: 800px) {
    .portal-footer__inner {
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      text-align: left;
      padding-block: 1rem;
    }
  }
  
  /* ——— Toggle tabs (Hire / Employee) ——— */
  .seg-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    padding: 4px;
    background: var(--brand-soft);
    border-radius: 12px;
    gap: 4px;
  }
  
  .seg-tabs__btn {
    min-height: 40px;
    padding: 0.45rem 1.1rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    font: inherit;
    font-weight: 600;
    color: var(--brand-mid);
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
  }
  
  .seg-tabs__btn.is-active {
    background: var(--brand);
    color: #fff;
  }
  
  .seg-tabs__btn:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
  }
  
  .skeleton {
    height: 110px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, var(--brand-soft), #fff, var(--brand-soft));
    background-size: 200% 100%;
    animation: shimmer 1.2s ease-in-out infinite;
  }
  
  @keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
  }
  
  @media (prefers-reduced-motion: reduce) {
    .skeleton {
      animation: none;
    }
  }
  