/* ─────────────────────────────────────────────────────────────
   Sobtai — one stylesheet, no build step.
   Layers keep the cascade predictable: reset → tokens → layout →
   components → utilities. Anything later always wins.
   ───────────────────────────────────────────────────────────── */

@layer reset, tokens, layout, components, utilities;

/* ── reset ─────────────────────────────────────────────────── */
@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  /* Reserve the scrollbar slot so the page never jumps sideways on load. */
  html {
    scrollbar-gutter: stable;
  }

  body,
  h1,
  h2,
  h3,
  h4,
  p,
  ul,
  ol {
    margin: 0;
  }

  ul,
  ol {
    padding: 0;
    list-style: none;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  img,
  svg {
    display: block;
    max-width: 100%;
  }

  button,
  input,
  select {
    font: inherit;
    color: inherit;
  }
}

/* ── tokens ────────────────────────────────────────────────── */
@layer tokens {
  /* Inter is one variable file, covering every weight we use. */
  @font-face {
    font-family: InterVariable;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/fonts/InterVariable.woff2") format("woff2");
  }

  :root {
    /* Brand green, taken from the logo. */
    --green: #149766;
    /* Same hue, darkened so white text and small links pass contrast. */
    --green-deep: #10846f;
    --green-dark: #0b6355;
    --green-light: #e6f7f0;
    --yellow: #ffc800;
    --orange: #ff8400;
    --blue: #0074ba;
    /* Dark brown on yellow — the magnifier button. */
    --on-yellow: #673500;

    --ink: #2f3432;
    --ink-soft: #424e4e;
    --ink-muted: #7c8b8b;

    --bg: #f3f6f5;
    --surface: #ffffff;
    --featured: #fffbf5;
    --line: #e2e8e6;

    --radius: 0px;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;

    --shadow-sm: 0 1px 2px rgb(47 52 50 / 8%);
    --shadow-md: 0 4px 16px rgb(47 52 50 / 10%);

    --container: 1200px;
    --font: InterVariable, system-ui, sans-serif;

    /* Thin scrollbar thumb that reads on both light and dark surfaces. */
    --scrollbar-thumb-color: rgb(128 128 128 / 45%);
  }
}

/* ── layout ────────────────────────────────────────────────── */
@layer layout {
  body {
    font-family: var(--font);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
  }

  /* a modal is open: stop the page behind it from scrolling */
  body.b-modal-open {
    overflow: hidden;
  }

  .container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--space-4);
  }

  .b-main {
    padding-block: var(--space-5) var(--space-7);
  }

  .b-section + .b-section {
    margin-top: var(--space-6);
  }

  [id] {
    scroll-margin-top: var(--space-5);
  }

  .b-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
  }

  .b-section__title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.2px;
  }

  .b-section__note {
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--ink-muted);
  }

  .b-section__link {
    flex: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--green-deep);
  }

  .b-section__link:hover {
    color: var(--green-dark);
    text-decoration: underline;
  }
}

/* ── components ────────────────────────────────────────────── */
@layer components {
  /* header */
  .b-header {
    background: var(--surface);
  }

  /* The bar is the brand surface: white on --green-deep for text contrast. */
  .b-header__bar {
    background: var(--green);
    color: #fff;
  }

  .b-header__bar-inner {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    height: 64px;
  }

  /* the country code superscript sits past the logo's right edge; push
     the nav out of its way */

  .b-header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-4);
  }

  .b-header__link {
    padding-block: 4px;
    font-size: 13.5px;
    font-weight: 600;
    color: rgb(255 255 255 / 94%);
    border-bottom: 2px solid transparent;
  }

  .b-header__link:hover {
    color: #fff;
    border-bottom-color: var(--yellow);
  }

  .b-header__lang {
    padding: 3px 12px;
    border: 1px solid rgb(255 255 255 / 55%);
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
  }

  .b-header__lang:hover {
    background: rgb(255 255 255 / 12%);
  }

  .b-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-left: auto;
  }

  .b-header__action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
  }

  .b-header__action:hover {
    color: var(--yellow);
  }

  .b-header__action .h-icon {
    width: 17px;
    height: 17px;
  }

  .b-header__post {
    padding: 8px 18px;
    font-size: 13px;
  }

  /* Signed-in header: an avatar only. The menu is a Google-style account card. */
  .b-account-menu {
    position: relative;
  }

  .b-account-menu__trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    border-radius: 50%;
    cursor: pointer;
  }

  .b-account-menu__trigger::-webkit-details-marker {
    display: none;
  }

  .b-account-menu__trigger:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 2px;
  }

  .b-account-menu__avatar {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2f4d47;
    box-shadow: 0 0 0 1px rgb(255 255 255 / 45%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
  }

  .b-account-menu__avatar--lg {
    width: 40px;
    height: 40px;
    background: var(--green);
    font-size: 17px;
  }

  .b-account-menu__panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 1000;
    box-sizing: border-box;
    width: 300px;
    max-width: calc(100vw - 24px);
    padding: 8px 0;
    background: #fff;
    color: #3c4043;
    border: 1px solid #e4e7e5;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgb(0 0 0 / 22%);
  }

  .b-account-menu__panel::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 12px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-top: 1px solid #e4e7e5;
    border-left: 1px solid #e4e7e5;
    transform: rotate(45deg);
  }

  .b-account-menu__identity {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 12px;
  }

  .b-account-menu__who {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
  }

  .b-account-menu__name {
    overflow: hidden;
    color: #202124;
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .b-account-menu__email {
    overflow: hidden;
    color: #5f6368;
    font-size: 12.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .b-account-menu__link {
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    padding: 9px 16px;
    background: none;
    border: 0;
    color: #3c4043;
    font: inherit;
    font-size: 13.5px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
  }

  .b-account-menu__link:hover,
  .b-account-menu__link:focus-visible {
    background: #f1f3f4;
    color: #202124;
    outline: none;
  }

  .b-account-menu__link .h-icon {
    flex: none;
    width: 18px;
    height: 18px;
    color: #5f6368;
  }

  .b-account-menu__link--accent {
    color: var(--green);
    font-weight: 600;
  }

  .b-account-menu__link--accent .h-icon {
    color: var(--green);
  }

  .b-account-menu__chevron {
    margin-left: auto;
    transform: rotate(180deg);
  }

  .b-account-menu__divider {
    height: 1px;
    margin: 8px 0;
    background: #e8eaed;
  }

  .b-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    line-height: 1;
  }

  .b-logo__mark {
    display: block;
    width: 40px;
    height: 40px;
    flex: none;
  }

  .b-logo__word {
    font-family: InterVariable, system-ui, sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
  }

  /* The lockup carries its own wordmark, and its tile is the bar's own green,
     so only the white cart and name show. The header repeats the name beside
     it at a size that stays readable on small screens. */
  .b-logo--header {
    gap: 8px;
    color: #fff;
  }

  .b-logo--header .b-logo__lockup {
    display: block;
    width: 40px;
    height: 40px;
    flex: none;
  }

  .b-logo--header .b-logo__word {
    font-size: 23px;
    letter-spacing: -0.3px;
  }

  .b-logo--small {
    gap: 8px;
  }

  .b-logo--small .b-logo__mark {
    width: 30px;
    height: 30px;
  }

  .b-logo--small .b-logo__word {
    font-size: 20px;
  }

  /* search: sits in the nav bar, beside the logo */
  .b-search {
    flex: 1;
    min-width: 0;
    max-width: 618px;
  }

  /* one white pill: location, query, magnifier */
  .b-search__field {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    height: 42px;
    padding-right: 4px;
    background: var(--surface);
    border-radius: 60px;
    box-shadow: 0 2px 6px rgb(0 0 0 / 16%);
  }

  .b-search__field:focus-within {
    box-shadow:
      0 0 0 2px var(--green),
      0 2px 6px rgb(0 0 0 / 16%);
  }

  /* location segment: sits inside the pill, before the query */
  .b-search__location {
    display: inline-flex;
    align-items: center;
    flex: none;
    align-self: stretch;
    margin-right: 2px;
    padding-left: 14px;
    padding-right: 12px;
    border-right: 1px solid var(--line);
  }

  .b-search__location-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 190px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
  }

  .b-search__location-btn:hover {
    color: var(--ink);
  }

  .b-search__location-btn .h-icon {
    width: 16px;
    height: 16px;
    color: var(--green-deep);
  }

  .b-search__location-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .b-search__chevron {
    width: 13px;
    height: 13px;
    flex: none;
    color: var(--ink-muted);
  }

  .b-search__input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 10px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
    /* the bar sets white text, which would leave the query invisible on the
       white pill - and the caret with it */
    color: var(--ink);
    caret-color: var(--ink);
  }

  .b-search__input::placeholder {
    color: var(--ink-muted);
  }

  .b-search__button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: none;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--on-yellow);
    cursor: pointer;
    transition: background-color 120ms ease;
  }

  .b-search__button:hover {
    background: #f0bc00;
  }

  .b-search__button .h-icon {
    width: 18px;
    height: 18px;
  }

  /* the country picker */
  .b-country {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    background: rgb(16 32 28 / 58%);
  }

  .b-country[hidden] {
    display: none;
  }

  .b-country__panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 520px;
    max-height: min(82vh, 640px);
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 16px 48px rgb(0 0 0 / 32%);
    animation: b-picker-in 160ms ease;
  }

  .b-country__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--line);
  }

  .b-country__title {
    font-size: 16px;
    font-weight: 700;
  }

  .b-country__close {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: none;
    border: 0;
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
  }

  .b-country__close:hover {
    background: var(--bg);
    color: var(--ink);
  }

  .b-country__note {
    padding: var(--space-4) var(--space-5) 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--ink-soft);
  }

  .b-country__list {
    display: grid;
    gap: 2px;
    padding: var(--space-4) var(--space-5) var(--space-5);
    overflow-y: auto;
  }

  .b-country__option {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    padding: 10px var(--space-3);
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition:
      border-color 120ms ease,
      background-color 120ms ease;
  }

  .b-country__option:hover {
    border-color: var(--green);
    background: var(--green-light);
  }

  .b-country__option.is-current {
    border-color: var(--green);
    background: var(--green-light);
  }

  .b-country__code {
    display: grid;
    place-items: center;
    width: 30px;
    height: 22px;
    flex: none;
    background: var(--green);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
  }

  .b-country__name {
    font-weight: 600;
  }

  .b-country__currency {
    margin-left: auto;
    font-size: 12px;
    color: var(--ink-muted);
  }

  /* the country code badge next to the logo */
  /* the country code superscript sits past the logo's right edge; push
     the nav out of its way */
  .b-logo-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: none;
    margin-right: var(--space-3);
  }

  .b-logo__code {
    position: absolute;
    top: 3px;
    right: -24px;
    padding: 0 3px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    cursor: pointer;
    text-transform: uppercase;
  }

  .b-logo__code:hover {
    color: #fff;
  }

  .b-logo__code:focus-visible {
    outline: 1px solid #fff;
    outline-offset: 2px;
    border-radius: 2px;
  }
  /* location picker */
  .b-picker {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    background: rgb(16 32 28 / 58%);
  }

  .b-picker[hidden] {
    display: none;
  }

  .b-picker__panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 660px;
    max-height: min(82vh, 660px);
    background: var(--surface);
    /* the picker sits inside the header, so it has to set its own ink */
    color: var(--ink);
    box-shadow: 0 16px 48px rgb(0 0 0 / 32%);
    animation: b-picker-in 160ms ease;
  }

  @keyframes b-picker-in {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
  }

  .b-picker__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--line);
  }

  .b-picker__title {
    font-size: 16px;
    font-weight: 700;
  }

  .b-picker__close {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: none;
    border: 0;
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
  }

  .b-picker__close:hover {
    background: var(--bg);
    color: var(--ink);
  }

  .b-picker__search {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    height: 42px;
    margin: var(--space-4) var(--space-5) 0;
    padding: 0 var(--space-3);
    border: 1px solid var(--line);
    background: var(--surface);
  }

  .b-picker__search:focus-within {
    border-color: var(--green);
  }

  .b-picker__search .h-icon {
    color: var(--ink-muted);
  }

  .b-picker__input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
    color: var(--ink);
    caret-color: var(--ink);
  }

  .b-picker__body {
    overflow-y: auto;
    padding: var(--space-4) var(--space-5) var(--space-5);
  }

  .b-picker__empty {
    padding: var(--space-5) 0;
    font-size: 13.5px;
    color: var(--ink-muted);
    text-align: center;
  }

  .b-picker__section[hidden] {
    display: none;
  }

  .b-picker__section + .b-picker__section {
    margin-top: var(--space-5);
  }

  .b-picker__label {
    margin-bottom: var(--space-2);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
  }

  .b-picker__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .b-picker__chip {
    padding: 6px 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
    transition:
      border-color 120ms ease,
      color 120ms ease;
  }

  .b-picker__chip:hover {
    border-color: var(--green);
    color: var(--green-deep);
  }

  .b-picker__rows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px var(--space-4);
  }

  .b-picker__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-2);
    width: 100%;
    padding: 8px 10px;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
  }

  .b-picker__row:hover {
    background: var(--green-light);
  }

  .b-picker__row-name {
    font-size: 13.5px;
    font-weight: 600;
  }

  .b-picker__row-count {
    font-size: 11.5px;
    color: var(--ink-muted);
    white-space: nowrap;
  }

  /* the arrow says "this one opens the areas inside" */
  .b-picker__row--drill {
    position: relative;
    padding-right: 28px;
  }

  .b-picker__row--drill::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -4px;
    border-right: 1.5px solid var(--ink-muted);
    border-bottom: 1.5px solid var(--ink-muted);
    transform: rotate(-45deg);
  }

  .b-picker__row--drill:hover::after {
    border-color: var(--green-deep);
  }

  .b-picker__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: var(--space-4);
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    color: var(--green-deep);
    cursor: pointer;
  }

  .b-picker__back:hover {
    color: var(--green-dark);
  }

  .b-picker__back .h-icon {
    width: 16px;
    height: 16px;
  }

  /* buttons */
  .fw-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 10px var(--space-5);
    border: 0;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition:
      background-color 120ms ease,
      color 120ms ease;
  }

  .fw-button--primary {
    background: var(--green-deep);
    color: #fff;
  }

  .fw-button--primary:hover {
    background: var(--green-dark);
  }

  .fw-button--accent {
    background: var(--yellow);
    color: var(--ink);
  }

  .fw-button--accent:hover {
    background: #f0bc00;
  }

  .fw-button--ghost {
    background: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--line);
  }

  .fw-button--ghost:hover {
    background: var(--surface);
  }

  .fw-button--ink {
    background: var(--ink);
    color: #fff;
  }

  .fw-button--ink:hover {
    background: #1f2322;
  }

  /* hero — the white opening band on the front page */
  .b-hero {
    background: var(--surface);
    border-bottom: 1px solid var(--green);
  }

  .b-hero__inner {
    position: relative;
    display: grid;
    /* intro | map | location lists, so the map sits right of the headline
       and the lists hug the far right, the way the reference site does it.
       The map's column is as wide as the map asks for, so a country with a
       wider shape can have more room. */
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: auto 1fr;
    column-gap: var(--space-5);
    min-height: 430px;
    padding-block: var(--space-6) var(--space-5);
  }

  .b-hero__intro {
    grid-column: 1;
    grid-row: 1;
    max-width: 460px;
  }

  .b-hero__title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.33;
    color: var(--ink);
  }

  /* the second half of the headline is lighter, not italic */
  .b-hero__title em {
    font-style: normal;
    font-weight: 400;
  }

  .b-hero__subtitle {
    margin-top: var(--space-4);
    max-width: 46ch;
    font-size: 14px;
    line-height: 1.65;
    color: var(--ink-soft);
  }

  .b-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--space-3);
    font-size: 13px;
    font-weight: 700;
    color: var(--green-deep);
  }

  .b-hero__cta::after {
    content: "→";
  }

  .b-hero__cta:hover {
    color: var(--green-dark);
    text-decoration: underline;
  }

  /* the lists hug the far right, leaving the map beside the headline */
  .b-hero__locations {
    grid-column: 3;
    grid-row: 1 / span 2;
    justify-self: end;
    align-self: start;
    text-align: right;
  }

  .b-hero__group + .b-hero__group {
    margin-top: var(--space-4);
  }

  .b-hero__group-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
  }

  .b-hero__links {
    margin-top: 2px;
  }

  .b-hero__links li {
    line-height: 1.65;
  }

  .b-hero__links a {
    font-size: 13.5px;
    color: var(--blue);
  }

  .b-hero__links a:hover {
    text-decoration: underline;
  }

  .b-hero__map {
    position: relative;
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: center;
    width: 440px;
  }

  /*
   * Every country is drawn in the same box, so a small one (Singapore) and a
   * tall one (Bangladesh) both fill the right side of the band. The viewBox
   * keeps each country's own proportions inside it.
   */
  .b-hero__map svg {
    display: block;
    width: 100%;
    height: 400px;
    overflow: hidden;
  }

  /*
   * Bangladesh and Japan are tall and narrow, so in the same box as the
   * others they sat smaller than the maps around them. Malaysia is the
   * other way round, so it is given more width. The phones keep their own
   * size.
   */
  @media (min-width: 1121px) {
    .b-hero__map[data-country="bd"] svg,
    .b-hero__map[data-country="jp"] svg {
      height: 460px;
    }

    .b-hero__map[data-country="my"] {
      width: 520px;
    }
  }

  /* the country, the regions and the places inside them */
  .b-map__country {
    fill: var(--green);
  }

  .b-map__region-link {
    cursor: pointer;
  }

  .b-map__region {
    fill: var(--green);
    stroke: var(--surface);
    stroke-width: 1px;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    transition: fill 120ms ease;
  }

  .b-map__region-link:hover .b-map__region,
  .b-map__region-link:focus-visible .b-map__region {
    fill: var(--green-dark);
  }

  .b-map__district {
    cursor: pointer;
  }

  /*
   * The detailed areas of a small country: the whole neighbourhood is a
   * target, and it is drawn with a hairline between the ones next to it.
   * The land is the light brand green, and the shape under the pointer
   * deepens.
   */
  .b-map__area {
    cursor: pointer;
  }

  /*
   * The land of a map drawn from its areas. It is filled under them, so the
   * island reads as one shape, and it carries no edge of its own.
   */
  .b-map__land {
    fill: var(--green);
  }

  .b-map__area-shape {
    fill: var(--green);
    stroke: var(--surface);
    stroke-width: 0.75px;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    transition: fill 120ms ease;
  }

  .b-map__area:hover .b-map__area-shape,
  .b-map__area:focus-visible .b-map__area-shape {
    fill: var(--green-dark);
  }

  .b-map__district-shape {
    fill: transparent;
    stroke: rgb(255 255 255 / 40%);
    stroke-width: 0.6px;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
  }

  .b-map__district:hover .b-map__district-shape,
  .b-map__district:focus-visible .b-map__district-shape {
    /* the district deepens under the pointer, like every other shape */
    fill: rgb(11 99 85 / 55%);
    stroke: #fff;
  }

  .b-map__edge {
    fill: none;
    stroke: var(--green-dark);
    stroke-width: 1px;
    stroke-linejoin: round;
    opacity: 0.5;
    pointer-events: none;
    vector-effect: non-scaling-stroke;
  }

  .b-map__city {
    cursor: pointer;
  }

  .b-map__city circle {
    fill: var(--yellow);
    stroke: var(--green-dark);
    stroke-width: 1px;
    vector-effect: non-scaling-stroke;
  }

  .b-map__city:hover circle,
  .b-map__city:focus-visible circle {
    fill: #fff;
  }

  /* the label that follows the pointer over the map */
  .b-map__tip {
    position: fixed;
    z-index: 70;
    padding: 5px 9px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 6px 18px rgb(0 0 0 / 25%);
  }

  .b-hero__focus {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    margin-top: var(--space-5);
  }

  .b-hero__focus-title {
    margin-bottom: var(--space-2);
    font-weight: 700;
    color: var(--ink);
  }

  .b-hero__categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line);
    background: var(--surface);
  }

  .b-hero__category {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-2) var(--space-3);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--blue);
    text-align: center;
  }

  .b-hero__category:hover {
    background: var(--green-light);
  }

  .b-hero__category:hover span:last-child {
    text-decoration: underline;
  }

  .b-hero__category-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: var(--green);
  }

  /*
   * Category pictograms.
   *
   * They ship as one raster sheet per size, the way the reference site did,
   * so the artwork does not travel as seventeen loose files. The sheet is a
   * column: every pictogram is one cell down, and the row is set per
   * category below.
   */
  .o-sprite {
    --cell: 18px;
    --sheet: url("/sprites/categories-18.png");
    display: inline-block;
    width: var(--cell);
    height: var(--cell);
    background-image: var(--sheet);
    background-repeat: no-repeat;
    background-size: var(--cell) calc(var(--cell) * 17);
    background-position: 0 calc(var(--row) * var(--cell) * -1);
  }

  .o-sprite--lg {
    --cell: 36px;
    --sheet: url("/sprites/categories-36.png");
  }

  /* a retina screen gets the double-size sheet, scaled back down */
  @media (min-resolution: 2dppx) {
    .o-sprite {
      --sheet: url("/sprites/categories-36.png");
    }

    .o-sprite--lg {
      --sheet: url("/sprites/categories-72.png");
    }
  }

  .o-sprite.vehicles {
    --row: 0;
  }

  .o-sprite.property {
    --row: 1;
  }

  .o-sprite.phones-tablets {
    --row: 2;
  }

  .o-sprite.electronics {
    --row: 3;
  }

  .o-sprite.home-furniture {
    --row: 4;
  }

  .o-sprite.fashion {
    --row: 5;
  }

  .o-sprite.beauty-care {
    --row: 6;
  }

  .o-sprite.services {
    --row: 7;
  }

  .o-sprite.repair-construction {
    --row: 8;
  }

  .o-sprite.commercial-tools {
    --row: 9;
  }

  .o-sprite.leisure-activities {
    --row: 10;
  }

  .o-sprite.babies-kids {
    --row: 11;
  }

  .o-sprite.food-agriculture {
    --row: 12;
  }

  .o-sprite.animals-pets {
    --row: 13;
  }

  .o-sprite.jobs {
    --row: 14;
  }

  .o-sprite.seeking-work {
    --row: 15;
  }

  .o-sprite.business-industry {
    --row: 16;
  }

  /* category grid */
  .b-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-2);
  }

  .b-category-tile {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--surface);
    border: 1px solid var(--line);
    transition:
      border-color 120ms ease,
      transform 120ms ease;
  }

  .b-category-tile:hover {
    border-color: var(--green);
    transform: translateY(-1px);
  }

  .b-category-tile__icon-wrap {
    display: grid;
    place-items: center;
    flex: none;
  }

  .b-category-tile__text {
    display: grid;
    min-width: 0;
  }

  .b-category-tile__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-weight: 700;
    line-height: 1.3;
  }

  .b-category-tile__count {
    font-size: 12px;
    color: var(--ink-muted);
  }

  /* ad grid + card */
  .b-ad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-3);
  }

  .b-ad-card {
    background: var(--surface);
    border: 1px solid var(--line);
    transition:
      box-shadow 140ms ease,
      border-color 140ms ease;
  }

  .b-ad-card:hover {
    border-color: var(--green);
    box-shadow: var(--shadow-md);
  }

  .b-ad-card--featured {
    background: var(--featured);
    border-color: var(--yellow);
  }

  .b-ad-card__link {
    display: block;
    height: 100%;
  }

  .b-ad-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(
      140deg,
      hsl(var(--hue, 200) 42% 90%),
      hsl(calc(var(--hue, 200) + 26) 36% 80%)
    );
  }

  /* No photos yet, so the category icon stands in as a watermark. */
  .b-ad-card__icon {
    position: absolute;
    right: var(--space-3);
    bottom: var(--space-2);
    width: 56px;
    height: 56px;
    color: rgb(47 52 50 / 16%);
  }

  .b-ad-card__cat {
    position: absolute;
    left: var(--space-2);
    bottom: var(--space-2);
    padding: 2px 8px;
    background: rgb(255 255 255 / 92%);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }

  .b-ad-card__body {
    padding: var(--space-3);
  }

  .b-ad-card__title {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
  }

  .b-ad-card__price {
    margin-top: var(--space-2);
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
  }

  .b-ad-card__meta {
    margin-top: 2px;
    font-size: 12px;
    color: var(--ink-muted);
  }

  .b-badge {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .b-badge--featured {
    background: var(--yellow);
    color: var(--ink);
  }

  /* promo row */
  .b-promos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-6);
  }

  .b-promo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-5);
    background: var(--surface);
    border: 1px solid var(--line);
  }

  .b-promo--membership {
    background: var(--yellow);
    border-color: #e6b200;
  }

  .b-promo__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }

  .b-promo__title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.4px;
  }

  .b-promo__body {
    max-width: 46ch;
    font-size: 13.5px;
    color: var(--ink-soft);
  }

  .b-promo__perks {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
    font-size: 13px;
    font-weight: 700;
  }

  .b-promo__perk {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .b-promo__perk .h-icon {
    width: 14px;
    height: 14px;
    color: var(--green-deep);
  }

  .b-promo--membership .b-promo__perk .h-icon {
    color: var(--ink);
  }

  .b-promo > .fw-button {
    margin-top: var(--space-2);
  }

  /* footer: the same green as the header, so the page is book-ended */
  .b-footer {
    background: var(--green);
    color: #fff;
    margin-top: var(--space-7);
  }

  .b-footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-6);
    padding-block: var(--space-6);
  }

  .b-footer .b-logo {
    color: #fff;
  }

  .b-footer__tagline {
    margin-top: var(--space-2);
    font-size: 13px;
    color: rgb(255 255 255 / 85%);
    max-width: 30ch;
  }

  .b-footer__credit {
    margin-top: 6px;
    font-size: 11px;
    color: rgb(255 255 255 / 65%);
  }

  .b-footer__country {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 12px;
    text-align: left;
    text-decoration: underline;
    cursor: pointer;
  }

  .b-footer__country:hover {
    text-decoration: none;
  }

  .b-footer__columns {
    display: flex;
    gap: var(--space-7);
  }

  .b-footer__column {
    display: grid;
    gap: 6px;
    font-size: 13px;
    align-content: start;
  }

  .b-footer__column h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgb(255 255 255 / 70%);
    margin-bottom: 2px;
  }

  .b-footer__column a {
    color: #fff;
  }

  .b-footer__column a:hover {
    text-decoration: underline;
  }

  .b-footer__base {
    border-top: 1px solid rgb(255 255 255 / 22%);
    padding-block: var(--space-3);
    font-size: 12px;
    color: rgb(255 255 255 / 70%);
  }

  .b-footer__base .container {
    display: flex;
    justify-content: space-between;
  }

  .b-footer__env {
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
}

/* ── utilities ─────────────────────────────────────────────── */
/* the list page */
.b-list__grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 280px;
  gap: var(--space-5);
  padding-block: var(--space-5);
  padding-inline: 0;
  background: var(--surface);
}

.b-filters {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-self: start;
}

/* hairline separators between the white columns, like the reference */
@media (min-width: 901px) {
  .b-filters:not(.b-filters--right) {
    border-right: 1px solid var(--line);
    padding-right: var(--space-5);
  }

  .b-filters--right {
    border-left: 1px solid var(--line);
    padding-left: var(--space-5);
  }
}

.b-filters__panel {
  background: var(--surface);
  padding: var(--space-4);
}

.b-filters__title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
}

.b-filters__group + .b-filters__group {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

/* The two filter dropdowns belong together; no line between them. */
.b-filters__group + .b-filters__group--no-divider {
  margin-top: var(--space-3);
  padding-top: 0;
  border-top: none;
}

/* The urgent / featured checkboxes ("Filter ads by"). */
.b-filters__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.b-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.b-check__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
  padding: 0;
}

.b-check__box {
  flex: none;
  width: 14px;
  height: 14px;
  border: 1px solid #afb7ad;
  border-radius: 4px;
  background: var(--surface);
  display: grid;
  place-items: center;
}

.b-check__box::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(0.5px, -1px);
  opacity: 0;
}

.b-check__input:checked + .b-check__box {
  background: var(--green);
  border-color: var(--green-deep);
}

.b-check__input:checked + .b-check__box::after {
  opacity: 1;
}

.b-check__input:focus-visible + .b-check__box {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.b-check:hover .b-check__box {
  border-color: var(--green);
}

.b-pill {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  border-radius: 2px;
}

.b-pill--urgent {
  background: #d95e46;
}

.b-pill--featured {
  background: #673500;
}

.b-filters__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: var(--space-2);
}

.b-dd {
  position: relative;
}

.b-dd__label {
  display: block;
  font-size: 12px;
  padding-bottom: 8px;
  color: #707676;
}

.b-dd__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  width: 213px;
  min-height: 30px;
  padding: 0 0 0 12px;
  border: 1px solid #d4ded9;
  border-radius: 2px;
  background: var(--surface);
  font-size: 14px;
  color: var(--ink);
  text-align: left;
  list-style: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  line-height: 1;
  transition:
    background 120ms ease,
    border-color 120ms ease,
    min-height 120ms ease,
    border-radius 120ms ease;
}

.b-dd__button::-webkit-details-marker {
  display: none;
}

.b-dd__button:hover {
  border-color: var(--green);
}

.b-dd__button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.b-dd__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1;
}

.b-dd__chevron {
  flex: none;
  width: 24px;
  height: 24px;
  margin-right: 4px;
  color: #afb7ad;
  transition: transform 0.3s;
}

.b-dd[open] .b-dd__chevron {
  transform: rotate(180deg);
}

/* Open state: the button becomes the first, highlighted row of the menu. */
/* Open state: the button becomes the first, highlighted row of the menu.
   The chevron box stays outside the list, attached at the right edge of
   the first row only, like the reference. */
.b-dd[open] .b-dd__button {
  width: 213px;
  min-height: 30px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  gap: 0;
}

.b-dd[open] .b-dd__text {
  display: flex;
  align-items: center;
  align-self: stretch;
  flex: none;
  width: 180px;
  padding: 7px 12px;
  background: #00965a26;
  border: 1px solid #eceff0;
  border-right: none;
  border-radius: 4px 0 0 0;
  color: var(--green);
}

.b-dd[open] .b-dd__chevron {
  flex: none;
  align-self: stretch;
  width: 30px;
  height: 30px;
  padding: 2px;
  background: transparent;
  border: 1px solid #eceff0;
  border-radius: 0 4px 0 0;
  transform: rotate(180deg);
  color: #afb7ad;
  margin-right: 4px;
}

.b-dd .b-dd__item.is-selected {
  background: #00965a26;
}

.b-dd[open] .b-dd__item.is-selected {
  display: none;
}

.b-dd__list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 180px;
  z-index: 999;
  box-sizing: border-box;
  max-height: 340px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid #eceff0;
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.b-dd__item {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1;
  color: var(--ink);
}

.b-dd__item:hover {
  background: #00965a26;
  color: var(--green);
}

/* The category & location lists: Bikroy-style rows — an icon column, then the name with count. */
.b-filters__list {
  list-style: none;
}

.b-filters__item {
  padding-left: calc(var(--space-2) + var(--indent, 0) * 18px);
}

.b-filters__item-link {
  display: block;
  padding: 5px var(--space-2);
  font-size: 13.5px;
  line-height: 1.35;
  text-decoration: none;
  color: #0060ba;
}

.b-filters__item-link:hover {
  background: var(--green-light);
}

.b-filters__item-body {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.b-filters__item-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
}

.b-filters__item-icon.is-empty {
  visibility: hidden;
}

.b-filters__item-label {
  min-width: 0;
  overflow-wrap: break-word;
}

.b-filters__item-count {
  color: var(--ink-muted);
}

/* the deepest selected row shows in black, everything else is blue */
.b-filters__item.is-selected .b-filters__item-link {
  color: var(--ink);
  font-weight: 700;
}

.b-safe__title {
  font-size: 15px;
  font-weight: 800;
  padding-bottom: var(--space-2);
}

.b-safe__text {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.b-results__panel {
  background: var(--surface);
}

.b-results__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-4) var(--space-3);
  border-bottom: 1px solid var(--line);
}

.b-results__title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.b-results__count {
  margin-top: 2px;
  font-size: 13px;
  color: var(--ink-muted);
}

.b-ad-list {
  list-style: none;
}

.b-ad-row {
  border-bottom: 1px solid var(--line);
}

.b-ad-row:last-child {
  border-bottom: none;
}

.b-ad-row--featured {
  background: var(--featured);
}

.b-ad-row__link {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  text-decoration: none;
  color: inherit;
}

.b-ad-row__thumb {
  flex: none;
  position: relative;
  width: 140px;
  height: 104px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(
    140deg,
    hsl(var(--hue, 200) 42% 90%),
    hsl(calc(var(--hue, 200) + 26) 36% 80%)
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.b-ad-row__icon {
  width: 44px;
  height: 44px;
  color: rgb(47 52 50 / 16%);
}

.b-ad-row__cat {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 2px 7px;
  background: rgb(255 255 255 / 92%);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.b-ad-row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.b-ad-row__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.b-ad-row__link:hover .b-ad-row__title {
  color: var(--green-deep);
  text-decoration: underline;
}

.b-ad-row__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-muted);
}

.b-ad-row__shop {
  width: 13px;
  height: 13px;
}

.b-ad-row__area {
  color: var(--ink-soft);
}

.b-ad-row__price {
  margin-top: auto;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.b-ad-row__extras {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
}

/* badges on the list page sit inside the row, not on top of it */
.b-ad-row__extras .b-badge {
  position: static;
}

.b-results__empty {
  padding: var(--space-7) var(--space-4);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: var(--space-3);
}

.b-results__empty-title {
  font-size: 17px;
  font-weight: 700;
}

.b-results__empty-text {
  color: var(--ink-muted);
}

.b-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4);
  border-top: 1px solid var(--line);
}

.b-page {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 36px;
  height: 36px;
  padding: 0 var(--space-2);
  justify-content: center;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
}

.b-page:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.b-page.is-current {
  background: var(--green);
  border-color: var(--green-deep);
  color: #fff;
}

.b-page .h-icon {
  width: 14px;
  height: 14px;
}

.b-page__forward {
  transform: scaleX(-1);
}

@media (max-width: 1120px) {
  .b-list__grid {
    grid-template-columns: 240px minmax(0, 1fr) 240px;
    gap: var(--space-4);
  }
}

@media (max-width: 900px) {
  .b-list__grid {
    grid-template-columns: 1fr;
    padding-block: var(--space-4);
  }

  .b-filters {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .b-filters__panel {
    flex: 1 1 320px;
  }
}

@media (max-width: 560px) {
  .b-ad-row__thumb {
    width: 96px;
    height: 88px;
  }

  .b-ad-row__link {
    gap: var(--space-3);
    padding: var(--space-3);
  }

  .b-ad-row__price {
    font-size: 15px;
  }

  .b-filters {
    flex-direction: column;
  }
}

@layer utilities {
  .h-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  /* One inline sprite, referenced by <use href="#i-…"> everywhere. */
  .h-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
  }

  .h-icon {
    width: 16px;
    height: 16px;
    flex: none;
  }
}

/* ── small screens ─────────────────────────────────────────── */
/*
 * The band stacks before the header does: three columns plus a map stop
 * fitting on a laptop, so the map takes its own row.
 */
@media (max-width: 1120px) {
  .b-hero__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: var(--space-5);
    min-height: 0;
    padding-block: var(--space-6);
  }

  .b-hero__intro {
    grid-column: 1;
    grid-row: auto;
    max-width: 560px;
  }

  /* the map moves into the flow once the columns stack, so a phone can tap it */
  .b-hero__map {
    position: static;
    grid-column: 1;
    grid-row: auto;
    width: min(100%, 380px);
    margin: 0 auto;
  }

  .b-hero__map svg {
    height: 340px;
  }

  .b-hero__locations {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
    text-align: left;
  }

  .b-hero__group + .b-hero__group {
    margin-top: 0;
  }

  .b-hero__focus {
    grid-column: 1;
    grid-row: auto;
    margin-top: 0;
  }
}

@media (max-width: 980px) {
  .b-header__nav {
    display: none;
  }

  /* the name does not fit on a phone: the code says enough */

  .b-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .b-header__bar-inner {
    flex-wrap: wrap;
    height: auto;
    gap: var(--space-3);
    padding-block: var(--space-3);
  }

  /* the search drops to its own row once the bar runs out of room */
  .b-search {
    order: 10;
    flex-basis: 100%;
    max-width: none;
  }

  .b-header__actions {
    gap: var(--space-3);
  }

  .b-hero__title {
    font-size: 28px;
  }

  .b-ad-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .b-promos {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .b-header__lang {
    display: none;
  }
}

@media (max-width: 560px) {
  .b-header__bar-inner {
    gap: var(--space-3);
  }

  .b-logo--header .b-logo__lockup {
    width: 32px;
    height: 32px;
  }

  .b-logo--header .b-logo__word {
    font-size: 20px;
  }

  /* keep the location reachable on a phone: pin only, no label */
  .b-search__location-name,
  .b-search__chevron {
    display: none;
  }

  .b-search__location {
    padding-right: 8px;
  }

  .b-search__location-btn {
    max-width: none;
  }

  .b-header__actions {
    gap: var(--space-3);
  }

  .b-header__action span {
    display: none;
  }

  .b-header__post {
    padding: 7px 12px;
    font-size: 12.5px;
  }

  .b-search__field {
    height: 40px;
  }

  .b-search__input {
    padding: 0 8px 0 0;
    font-size: 14px;
  }

  .b-search__button {
    width: 32px;
    height: 32px;
  }

  .b-hero__inner {
    padding-block: var(--space-5);
  }

  .b-hero__title {
    font-size: 26px;
  }

  /* two shortcuts per row, each a little more compact */
  .b-hero__categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .b-hero__category {
    flex-direction: row;
    justify-content: flex-start;
    gap: var(--space-3);
    padding: var(--space-2);
    text-align: left;
  }

  .b-hero__category-icon {
    width: 34px;
    height: 34px;
  }

  .b-hero__category-icon .o-sprite {
    --cell: 26px;
  }

  .b-category-grid {
    gap: 6px;
  }

  .b-category-tile {
    gap: var(--space-2);
    padding: var(--space-2);
  }

  /* the same size as the shortcut icons in the opening band */
  .b-category-tile__icon-wrap .o-sprite {
    --cell: 26px;
  }

  .b-section__note {
    display: none;
  }

  .b-ad-card__icon {
    width: 42px;
    height: 42px;
  }

  .b-footer__columns {
    gap: var(--space-5);
  }

  /* the picker goes full screen on a phone */
  .b-picker {
    padding: 0;
  }

  .b-picker__panel {
    max-width: none;
    max-height: 100vh;
    height: 100vh;
  }

  .b-picker__rows {
    grid-template-columns: 1fr;
  }
}

/* Ad detail page */
.b-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: var(--space-4);
}

.b-crumbs {
  margin-bottom: var(--space-3);
}

.b-crumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  font-size: 12px;
  color: var(--ink-muted);
}

.b-crumbs__item {
  display: inline-flex;
  align-items: center;
}

.b-crumbs__item + .b-crumbs__item::before {
  content: "/";
  margin: 0 6px;
  color: var(--line);
}

.b-crumbs__link {
  color: var(--blue);
  text-decoration: none;
}

.b-crumbs__link:hover {
  text-decoration: underline;
}

.b-crumbs__item--current {
  color: var(--ink);
  font-weight: 600;
}

.b-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--space-4);
  align-items: start;
}

.b-detail__badges {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.b-detail__badges .b-badge {
  position: static;
}

.b-detail__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.b-detail__posted {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-muted);
}

.b-detail__price {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-3) 0;
}

.b-detail__price-amount {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.b-detail__negotiable {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a5a00;
  border: 1px solid #e3c266;
  background: #fff8d6;
  padding: 2px 8px;
}

.b-gallery {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.b-gallery__main {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  border: 1px solid var(--line);
  background: linear-gradient(
    140deg,
    hsl(var(--hue, 200) 42% 90%),
    hsl(calc(var(--hue, 200) + 26) 36% 80%)
  );
}

.b-gallery__icon {
  width: 118px;
  height: 118px;
  color: rgb(47 52 50 / 18%);
}

.b-gallery__cat {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 8px;
  background: rgb(255 255 255 / 92%);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.b-gallery__strip {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 118px;
}

.b-gallery__thumb {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: linear-gradient(
    140deg,
    hsl(var(--hue, 200) 40% 84%),
    hsl(calc(var(--hue, 200) + 26) 34% 72%)
  );
}

.b-gallery__thumb-icon {
  width: 36px;
  height: 36px;
  color: rgb(47 52 50 / 16%);
}

.b-block {
  margin-top: var(--space-4);
}

.b-block__title {
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin-bottom: var(--space-2);
}

.b-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--space-5);
}

.b-facts__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}

.b-facts__label {
  color: var(--ink-muted);
  font-size: 12.5px;
  align-self: center;
}

.b-facts__value {
  font-size: 13.5px;
  font-weight: 600;
  align-self: center;
}

.b-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
}

.b-chips__chip {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--green-light);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
}

.b-desc {
  max-width: 64ch;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-line;
}

.b-alert {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1px solid #ecd98f;
  border-left: 4px solid var(--yellow);
  background: #fffbe6;
}

.b-alert__head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: 2px;
}

.b-alert__icon {
  width: 18px;
  height: 18px;
  color: #a17400;
  flex: none;
}

.b-alert__title {
  font-size: 13px;
  font-weight: 800;
}

.b-alert__text {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.b-alert__link {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.b-alert__link:hover {
  text-decoration: underline;
}

.b-alert--compact {
  margin-top: var(--space-3);
}

.b-detail__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}

.b-detail__report {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-muted);
  font-size: 12.5px;
  text-decoration: none;
}

.b-detail__report:hover {
  color: var(--ink);
  text-decoration: underline;
}

.b-detail__report-icon {
  width: 16px;
  height: 16px;
}

.b-detail__adid {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.b-detail__side {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.b-side__title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-3);
}

.b-seller__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.b-avatar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: hsl(var(--hue, 190) 38% 82%);
}

.b-avatar__icon {
  width: 26px;
  height: 26px;
  color: rgb(47 52 50 / 58%);
}

.b-seller__seller {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.b-seller__name {
  font-size: 16px;
  font-weight: 800;
}

.b-seller__member {
  align-self: flex-start;
  padding: 2px 8px;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.b-seller__private {
  font-size: 12px;
  color: var(--ink-muted);
}

.b-seller__shop {
  margin-top: var(--space-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.b-seller__phone {
  margin: var(--space-3) 0 var(--space-2);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
}

.b-seller__cta {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
}

.b-btn:focus-visible {
  outline: 2px solid var(--green-dark);
  outline-offset: 2px;
}

.b-btn--primary {
  background: var(--green);
  color: #fff;
}

.b-btn--primary:hover {
  background: var(--green-dark);
}

.b-btn--outline {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.b-btn--outline:hover {
  background: var(--green-light);
  border-color: var(--green);
}

.b-seller__cta .b-btn {
  flex: 1;
}

.b-btn--whatsapp {
  background: #fff;
  border-color: #25d366;
  color: #128c7e;
}

.b-btn--whatsapp:hover {
  background: #25d366;
  color: #043c2b;
}

.b-btn--block {
  width: 100%;
}

.b-btn__icon {
  width: 18px;
  height: 18px;
}

.b-call__name {
  font-size: 15px;
  font-weight: 700;
}

.b-call__number {
  display: inline-block;
  margin: var(--space-2) 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--blue);
  text-decoration: none;
}

.b-call__number:hover {
  text-decoration: underline;
}

.b-similar {
  margin-top: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
}

.b-results__head--flat {
  border-bottom: 1px solid var(--line);
}

.b-modal[hidden] {
  display: none;
}

.b-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.b-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(10 15 13 / 45%);
}

.b-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(440px, calc(100vw - 32px));
  max-height: 80vh;
  background: var(--surface);
  box-shadow: 0 12px 40px rgb(0 0 0 / 28%);
}

.b-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
}

.b-modal__title {
  font-size: 15px;
  font-weight: 800;
}

.b-modal__close {
  display: inline-flex;
  padding: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.b-modal__close:hover {
  background: var(--green-light);
}

.b-modal__close-icon {
  width: 20px;
  height: 20px;
}

.b-modal__notice {
  padding: 6px var(--space-4);
  border-bottom: 1px solid var(--line);
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 11.5px;
  font-weight: 600;
}

.b-modal__log {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 150px;
  overflow-y: auto;
  padding: var(--space-4);
}

.b-msg {
  max-width: 76%;
  padding: 8px 12px;
  font-size: 13.5px;
  line-height: 1.4;
}

.b-msg--in {
  border-radius: 2px 12px 12px 12px;
  background: #eceff0;
  align-self: flex-start;
}

.b-msg--out {
  border-radius: 12px 2px 12px 12px;
  background: var(--green-light);
  align-self: flex-end;
}

.b-modal__form {
  display: flex;
  border-top: 1px solid var(--line);
}

.b-modal__input {
  flex: 1;
  height: 48px;
  padding: 0 var(--space-4);
  border: 0;
  background: var(--surface);
  font-size: 14px;
  outline: none;
}

.b-modal__form .b-btn {
  height: 48px;
  border-radius: 0;
}

.b-notfound {
  padding: var(--space-7) var(--space-4);
  text-align: center;
}

.b-notfound__title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.b-notfound__text {
  max-width: 46ch;
  margin: var(--space-2) auto var(--space-4);
  color: var(--ink-soft);
  line-height: 1.5;
}

@media (max-width: 1120px) {
  .b-detail__grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 900px) {
  .b-detail__grid {
    grid-template-columns: 1fr;
  }

  .b-gallery__strip {
    display: none;
  }

  .b-gallery__main {
    min-height: 260px;
  }

  .b-facts {
    grid-template-columns: 1fr;
  }
}

/* Auth pages */
.b-auth {
  display: flex;
  justify-content: center;
  padding-block: var(--space-6);
}

.b-auth__card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: var(--space-6);
}

.b-auth__title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.b-auth__sub {
  margin: 4px 0 var(--space-4);
  font-size: 13px;
  color: var(--ink-muted);
}

.b-auth__error {
  margin: 0 0 var(--space-3);
  padding: 8px 12px;
  font-size: 13px;
  background: #fdecea;
  color: #b42318;
  border-left: 3px solid #b42318;
}

.b-auth__banner {
  margin: 0 0 var(--space-3);
  padding: 8px 12px;
  font-size: 13px;
  background: #fff5cc;
  border-left: 3px solid var(--yellow);
}

.b-auth__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.b-auth__divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-3) 0;
  font-size: 12px;
  color: var(--ink-muted);
}

.b-auth__divider::before,
.b-auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.b-auth__social {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.b-auth__social:hover {
  border-color: var(--green);
  color: var(--green-deep);
}

.b-field__label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
}

.b-field__input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  font-size: 14px;
  outline: none;
  background: var(--surface);
}

.b-field__input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 2px var(--green-light);
}

.b-field__hint {
  margin-top: 4px;
  color: rgb(92 89 88);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.b-field__error {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  color: #d92c20;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.b-field__error-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d92c20;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.b-auth__links {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-4);
  font-size: 13px;
}

.b-auth__links a {
  color: var(--blue);
  text-decoration: none;
}

.b-auth__links a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------------
 * Static pages (about, help, legal, coming-soon).
 * ------------------------------------------------------------------- */

.b-info {
  max-width: 760px;
  padding-block: var(--space-6);
}

.b-info__badge {
  display: inline-block;
  margin: 0 0 var(--space-3);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  background: var(--yellow);
  color: var(--ink);
}

.b-info__title {
  margin: 0 0 var(--space-3);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.b-info__intro {
  margin: 0 0 var(--space-5);
  font-size: 15px;
  color: var(--ink-muted);
}

.b-info__section {
  margin-bottom: var(--space-5);
}

.b-info__heading {
  margin: 0 0 var(--space-2);
  font-size: 16px;
  font-weight: 700;
}

.b-info__section p {
  margin: 0 0 var(--space-2);
  line-height: 1.6;
}

.b-info__cta {
  margin-top: var(--space-5);
}

/* ---------------------------------------------------------------------
 * The account console: one column of sections beside one panel.
 * The same shape as accounts.proton.me and myaccount.google.com, in the
 * marketplace's own colours and with square corners.
 * ------------------------------------------------------------------- */

.b-account {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
  padding-bottom: var(--space-6);
}

.b-account__aside {
  position: sticky;
  top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.b-account__card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--space-3);
  border: 1px solid var(--line);
  background: var(--surface);
}

.b-account__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.b-account__avatar--large {
  width: 52px;
  height: 52px;
  font-size: 17px;
}

.b-account__who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.b-account__who strong,
.b-account__who span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.b-account__who strong {
  font-size: 14px;
}

.b-account__who span {
  font-size: 12px;
  color: var(--ink-muted);
}

.b-account__nav {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--surface);
}

.b-account__nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px var(--space-3);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.b-account__nav-link:last-child {
  border-bottom: 0;
}

.b-account__nav-link:hover {
  background: var(--green-light);
  color: var(--green-dark);
}

.b-account__nav-link.is-active {
  background: var(--green-light);
  color: var(--green-dark);
  box-shadow: inset 3px 0 0 var(--green);
}

.b-account__signout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px var(--space-3);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.b-account__signout:hover {
  background: var(--green-light);
  color: var(--green-dark);
}

.b-account__panel {
  min-width: 0;
}

/* Proton-style settings: a light canvas with grouped cards inside it. */
.b-settings__head {
  margin-bottom: var(--space-4);
}

.b-settings-card {
  margin-bottom: var(--space-4);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(0 0 0 / 4%);
  overflow: hidden;
}

.b-settings-card--danger {
  border-color: #e6b8b4;
}

.b-settings-card__head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.b-settings-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--green-dark);
}

.b-settings-card__desc {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.b-settings-card__body {
  padding: 20px;
}

.b-settings-card--danger .b-settings-card__title {
  color: #b3261e;
}

.b-settings-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.b-settings-row:last-child {
  border-bottom: 0;
}

.b-settings-row__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--green-light);
  color: var(--green-dark);
}

.b-settings-row__icon .h-icon {
  width: 18px;
  height: 18px;
}

.b-settings-row__main {
  flex: 1;
  min-width: 0;
}

.b-settings-row__title {
  font-size: 13.5px;
  font-weight: 600;
}

.b-settings-row__desc {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.b-settings-row__action {
  flex: none;
}

.b-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--space-3);
}

.b-settings-tile {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.b-settings-tile:hover {
  border-color: var(--green);
  box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
}

.b-settings-tile__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--green-dark);
}

.b-settings-tile__title .h-icon {
  width: 17px;
  height: 17px;
}

.b-settings-tile__desc {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.b-2fa-secret {
  padding: 12px 14px;
  border: 1px dashed var(--line);
  background: var(--bg, #f3f6f5);
  color: var(--green-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

.b-2fa-codes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  list-style: none;
}

.b-2fa-codes li {
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--bg, #f3f6f5);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.b-account__nav-label {
  padding: 10px var(--space-3) 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.b-account__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--green-dark);
}

.b-account__lead {
  margin-top: var(--space-2);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.b-account__heading {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-weight: 700;
}

.b-account__heading--danger {
  color: #b3261e;
}

.b-account__text {
  margin-top: var(--space-2);
  margin-bottom: var(--space-3);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Who the page is about: avatar, name, email, verified mark. */
.b-identity {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}

.b-tag {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg, #f3f6f5);
  color: var(--ink-muted);
}

.b-tag--ok {
  background: var(--green-light);
  color: var(--green-dark);
}

/* The forms. Every one of them posts to the server; none needs script. */
.b-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.b-field__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.b-field__prefix {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
}

.b-field__prefix > span {
  padding-left: 12px;
  color: var(--ink-muted);
  font-weight: 600;
}

.b-field__prefix .b-field__input {
  border: 0;
  box-shadow: none;
}

.b-field__prefix:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 2px var(--green-light);
}

.b-form__actions {
  display: flex;
  gap: var(--space-2);
}

.b-btn--danger {
  background: #b3261e;
  color: #fff;
}

.b-btn--danger:hover {
  background: #8c1d17;
}

.b-btn--small {
  height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.b-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

/* The one-line answer after a POST: saved or not. */
.b-notice {
  margin-top: var(--space-4);
  padding: 10px var(--space-3);
  border-left: 3px solid var(--green);
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 600;
}

.b-notice--error {
  border-left-color: #b3261e;
  background: #fdecea;
  color: #8c1d17;
}

/* Devices: one row per signed-in browser. */
.b-devices {
  margin-top: var(--space-4);
  border: 1px solid var(--line);
}

.b-device {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  border-bottom: 1px solid var(--line);
}

.b-device:last-child {
  border-bottom: 0;
}

.b-device.is-current {
  background: var(--green-light);
}

.b-device__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--green-dark);
}

.b-device__body {
  flex: 1;
  min-width: 0;
}

.b-device__name {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  font-weight: 700;
}

.b-device__name .b-tag {
  margin-left: 0;
}

.b-device__meta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-muted);
}

.b-device__action {
  flex: none;
}

.b-devices__foot {
  margin-top: var(--space-5);
}

@media (max-width: 760px) {
  .b-account {
    grid-template-columns: minmax(0, 1fr);
  }

  .b-account__aside {
    position: static;
  }

  .b-account__panel {
    padding: var(--space-4);
  }

  .b-field__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── identity chrome (accounts surface) ─────────────────────────────── */

.b-account-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 56px;
}

.b-account-bar__kind {
  margin-left: var(--space-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  border: 1px solid var(--green-dark);
  padding: 2px 6px;
  border-radius: 0;
}

.b-account-bar__link {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-dark);
  text-decoration: none;
}

.b-account-bar__link:hover {
  text-decoration: underline;
}

.b-account-footer {
  background: var(--green-dark);
  color: #fff;
  margin-top: var(--space-6);
}

/* The shared .b-logo sets the ink colour; on the dark footer it must be white. */
.b-account-footer .b-logo {
  color: #fff;
}

.b-account-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-4) 0;
}

.b-account-footer__tagline {
  margin-top: var(--space-2);
  font-size: 12px;
  opacity: 0.85;
}

.b-account-footer__links {
  display: flex;
  gap: var(--space-4);
}

.b-account-footer__links a {
  font-size: 13px;
  color: #fff;
  opacity: 0.85;
  text-decoration: none;
}

.b-account-footer__links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.b-account-footer__base {
  border-top: 1px solid rgb(255 255 255 / 0.25);
  font-size: 12px;
  padding: var(--space-2) 0;
  display: flex;
  justify-content: space-between;
}

.b-account-footer__base .container {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
}

/* ── Account auth pages: Proton-style canvas and card ─────────────────── */

body:has(.b-auth-page) .b-account-bar,
body:has(.b-auth-page) .b-account-footer {
  display: none;
}

.b-auth-page__glow {
  position: fixed;
  top: -38vh;
  left: -18vw;
  width: 136vw;
  height: 96vh;
  pointer-events: none;
  background:
    radial-gradient(42% 55% at 26% 28%, rgb(109 74 255 / 42%), transparent 72%),
    radial-gradient(38% 48% at 78% 18%, rgb(38 132 255 / 26%), transparent 72%),
    radial-gradient(60% 60% at 50% 100%, rgb(88 45 190 / 28%), transparent 75%);
}

.b-auth-page__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  max-width: 440px;
  animation: auth-rise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.b-auth-page:has(.b-auth-card--wide) .b-auth-page__inner {
  max-width: 520px;
}

.b-auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.b-auth-brand img {
  filter: brightness(0) invert(1);
}

.b-auth-brand__name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.b-auth-brand__kind {
  color: rgb(255 255 255 / 72%);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
}

.b-auth-card__head p {
  margin-top: 8px;
  color: rgb(92 89 88);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.b-auth-card__head--inside h2 {
  color: #1c1b2a;
  font-size: 17px;
  font-weight: 800;
}

.b-auth-card__head--inside {
  margin-bottom: 4px;
}

.b-auth-error {
  margin-bottom: 16px;
  padding: 10px 12px;
  border-left: 3px solid #d92c20;
  background: #fff2f0;
  color: #8c1d17;
  font-size: 13px;
}

.b-auth-form,
.b-auth-step {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Only animate when JS moves between steps, never on the initial render. */
.b-auth-step.is-entering {
  animation: auth-step 0.32s ease both;
}

.b-auth-help {
  display: inline-block;
  margin-top: 18px;
  color: rgb(16 132 111);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-decoration: underline;
}

.b-auth-help:hover,
.b-auth-card__foot a:hover {
  text-decoration: underline;
}

.b-auth-back {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: #6d4aff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.b-auth-back .h-icon {
  width: 14px;
  height: 14px;
}

.b-auth-page .b-btn--primary {
  background: #00c19c;
  border-color: #999999;
  border-radius: 8px;
  color: #fff;
}

.b-auth-page .b-btn--primary:hover:not(:disabled) {
  background: #00a885;
  border-color: #7d7d7d;
}

.b-auth-page .b-btn--outline {
  background: #fff;
  border-color: #d6d6df;
  color: #1c1b2a;
}

.b-auth-page .b-check {
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: rgb(12 12 20);
}

.b-auth-page .b-field__hint a {
  color: rgb(92 89 88);
  text-decoration: underline;
}

.b-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 16px;
  color: #8b8b96;
  font-size: 12px;
}

.b-auth-divider::before,
.b-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ececf0;
}

.b-auth-social {
  width: 100%;
  padding: 11px;
  border: 1px solid #d6d6df;
  border-radius: 8px;
  background: #fff;
  color: #1c1b2a;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.b-auth-social:hover {
  background: #f6f5ff;
}

.b-auth-steps {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  color: #9b9ba6;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.b-auth-steps .is-current {
  color: #6d4aff;
}

.b-auth-benefits {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #ececf0;
}

.b-auth-benefits__title {
  color: #8b8b96;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.b-auth-benefits ul {
  display: grid;
  gap: 9px;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}

.b-auth-benefits li {
  position: relative;
  padding-left: 20px;
  color: #42424d;
  font-size: 13px;
}

.b-auth-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #6d4aff;
  font-weight: 800;
}

.b-auth-card__foot {
  margin-top: 28px;
  padding-top: 0;
  color: rgb(12 12 20);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: center;
}

.b-auth-card__foot p {
  margin: 0;
}

.b-auth-page .b-auth-card__foot a {
  color: rgb(16 132 111);
  font-weight: 400;
  text-decoration: underline;
}

.b-auth-page .b-auth-card__foot .b-auth-foot-trouble {
  padding: 0;
  border: 0;
  background: none;
  color: rgb(16 132 111);
  font: inherit;
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  text-decoration: underline;
  cursor: pointer;
}

.b-auth-page .b-auth-page__footer a {
  color: rgb(12 12 20);
  text-decoration: underline;
}

@keyframes auth-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes auth-step {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Smooth navigation across all pages, including these auth pages. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: auth-fade-out 0.16s ease both;
}

::view-transition-new(root) {
  animation: auth-fade-in 0.3s ease both;
}

@keyframes auth-fade-out {
  to {
    opacity: 0;
  }
}

@keyframes auth-fade-in {
  from {
    opacity: 0;
  }
}

/* ── Shared auth shell: top bar, centered card, product footer ────────── */

.b-auth-page__top,
.b-auth-page__footer {
  width: 100%;
  max-width: 460px;
}

.b-auth-page__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgb(16 132 111);
  font-size: 12.5px;
  font-weight: 600;
}

.b-auth-page__locale {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.b-auth-page__locale .h-icon {
  width: 16px;
  height: 16px;
}

.b-auth-page__locale .b-auth-page__locale-chevron {
  width: 12px;
  height: 12px;
}

.b-auth-page__theme {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #1c1b2a;
  cursor: pointer;
}

.b-auth-page__theme .h-icon {
  width: 18px;
  height: 18px;
}

.b-auth-page__theme:hover {
  background: rgb(20 61 47 / 8%);
}

.b-auth-theme {
  position: relative;
}

.b-auth-theme__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  width: 196px;
  padding: 6px;
  border: 1px solid #e4e7e5;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 34px rgb(0 0 0 / 16%);
}

.b-auth-page .b-auth-theme__menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #1c1b2a;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.b-auth-page .b-auth-theme__menu button:hover {
  background: #f1f3f4;
}

.b-auth-page .b-auth-theme__menu button.is-active {
  color: #149776;
}

.b-auth-theme__menu .h-icon {
  width: 17px;
  height: 17px;
}

.b-auth-theme__auto {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}

.b-auth-theme__auto small {
  color: #8b8b96;
  font-size: 11px;
  font-weight: 400;
}

html[data-auth-theme="dark"] .b-auth-theme__auto small {
  color: #a9a9b6;
}

.b-auth-card--wide {
  max-width: 520px;
}

.b-auth-page__footer {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: center;
  color: rgb(255 255 255 / 58%);
  font-size: 11.5px;
}

.b-auth-page__apps {
  display: flex;
  gap: 10px;
}

.b-auth-page__apps span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #6d4aff;
  color: #fff;
}

.b-auth-page__apps .h-icon {
  width: 17px;
  height: 17px;
}

.b-auth-page__footer p {
  margin: 0;
  color: rgb(12 12 20);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.b-auth-page__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgb(12 12 20);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.b-auth-keep {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.b-auth-keep .b-field__hint {
  margin-left: 33px;
}

/* ── Proton login spacing and edge-to-edge top bar ────────────────────── */

.b-auth-page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  min-height: 100vh;
  padding: 96px 18px 48px;
  overflow: hidden;
  background: #0c0a1e;
  color: #1c1b2a;
}

.b-auth-page__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: none;
  padding: 24px 45px;
}

.b-auth-page__top .b-auth-brand {
  justify-content: flex-start;
}

.b-auth-card {
  --max-w-custom: 30rem;
  width: 100%;
  max-width: var(--max-w-custom);
  padding: 45px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 26px 70px rgb(0 0 0 / 45%);
}

.b-auth-card__head {
  margin-bottom: 28px;
}

.b-auth-card__head h1 {
  color: rgb(12 12 20);
  font-size: 28px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -0.02em;
}

.b-auth-page .b-field__input {
  padding: 12px 14px;
  border-color: #c4c4cc;
  border-radius: 8px;
}

.b-auth-page .b-field__label {
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: rgb(12 12 20);
}

.b-auth-page .b-btn--block {
  min-height: 48px;
}

/* Sign-in uses the light green canvas; sign-up keeps the dark Proton canvas. */
.b-auth-page--signin {
  background: linear-gradient(68.66deg, #e2fff0 1.3%, #e6fff6 50%);
}

.b-auth-page--signin .b-auth-page__glow {
  display: none;
}

.b-auth-page--signin .b-auth-brand {
  color: rgb(12 12 20);
}

.b-auth-page--signin .b-auth-brand img {
  filter: none;
}

.b-auth-page--signin .b-auth-brand__kind {
  color: #149776;
}

.b-auth-page--signin .b-auth-card {
  box-shadow: 0 20px 50px rgb(0 0 0 / 10%);
}

.b-auth-page--signin .b-auth-page__footer {
  color: rgb(20 61 47 / 62%);
}

.b-auth-page--signin .b-auth-page__footer a {
  color: rgb(12 12 20);
}

.b-auth-page:has(.b-auth-card--wide) .b-auth-page__top,
.b-auth-page:has(.b-auth-card--wide) .b-auth-page__footer,
.b-auth-page:has(.b-auth-card--wide) .b-auth-card {
  max-width: 520px;
}

/* Dark sign-in shares the business signup canvas (green radial + soft glows). */
html[data-auth-theme="dark"] .b-auth-page--signin {
  background:
    radial-gradient(38% 42% at 85% 8%, rgb(0 193 156 / 12%), transparent 70%),
    radial-gradient(46% 50% at 8% 92%, rgb(20 151 118 / 12%), transparent 70%),
    radial-gradient(ellipse 90% 70% at 50% 20%, #0f3a30 0%, #0b2924 45%, #08110f 100%);
  background-attachment: fixed;
}

html[data-auth-theme="dark"] .b-auth-card__head h1,
html[data-auth-theme="dark"] .b-auth-card__head h2 {
  color: #fff;
}

html[data-auth-theme="dark"] .b-auth-card__head p,
html[data-auth-theme="dark"] .b-auth-page__footer p {
  color: #b9b9c6;
}

html[data-auth-theme="dark"] .b-auth-page .b-auth-brand,
html[data-auth-theme="dark"] .b-auth-page .b-auth-page__top,
html[data-auth-theme="dark"] .b-auth-page .b-auth-page__tools,
html[data-auth-theme="dark"] .b-auth-page .b-auth-page__footer {
  color: #d6d6e0;
}

html[data-auth-theme="dark"] .b-auth-page--signin .b-auth-brand__name {
  color: #fff;
}

html[data-auth-theme="dark"] .b-auth-page .b-auth-card {
  border: 1px solid rgb(255 255 255 / 7%);
  background: #1e1e22;
  box-shadow: 0 28px 70px rgb(0 0 0 / 55%);
}

html[data-auth-theme="dark"] .b-auth-page .b-auth-theme__menu {
  border-color: rgb(255 255 255 / 12%);
  background: #1e1e22;
  box-shadow: 0 14px 34px rgb(0 0 0 / 55%);
}

html[data-auth-theme="dark"] .b-auth-page .b-auth-page__theme {
  background: rgb(255 255 255 / 10%);
  border-color: rgb(255 255 255 / 24%);
  color: #fff;
}

html[data-auth-theme="dark"] .b-auth-page .b-field__input {
  border-color: rgb(255 255 255 / 18%);
  border-radius: 8px;
  background: #161619;
  color: #e7e7ef;
}

html[data-auth-theme="dark"] .b-auth-page .b-field__label {
  color: #f4f4f8;
}

html[data-auth-theme="dark"] .b-auth-page .b-check {
  color: #d6d6e0;
}

html[data-auth-theme="dark"] .b-auth-page .b-field__hint {
  color: #a9a9b6;
}

html[data-auth-theme="dark"] .b-auth-page .b-auth-help {
  color: #b6a8ff;
}

html[data-auth-theme="dark"] .b-auth-page .b-auth-divider {
  color: #8b8b96;
}

html[data-auth-theme="dark"] .b-auth-page .b-btn--primary {
  border-radius: 8px;
}

html[data-auth-theme="dark"] .b-auth-page .b-auth-card__foot {
  color: #d6d6e0;
}

html[data-auth-theme="dark"] .b-auth-page .b-auth-divider::before,
html[data-auth-theme="dark"] .b-auth-page .b-auth-divider::after {
  background: rgb(255 255 255 / 12%);
}

html[data-auth-theme="dark"] .b-auth-page .b-field__hint a,
html[data-auth-theme="dark"] .b-auth-page .b-auth-card__foot a,
html[data-auth-theme="dark"] .b-auth-page .b-auth-page__footer a {
  color: #b6a8ff;
}

html[data-auth-theme="dark"] .b-auth-page .b-auth-card__foot p {
  color: #e7e7ef;
}

html[data-auth-theme="dark"] .b-auth-page .b-auth-theme__menu button {
  color: #e7e7ef;
}

html[data-auth-theme="dark"] .b-auth-page .b-field__input:focus {
  border-color: #6d4aff;
  box-shadow: 0 0 0 2px rgb(109 74 255 / 28%);
}

html[data-auth-theme="dark"] .b-auth-page .b-auth-page__apps span:nth-child(1) {
  background: #3d7bfd;
}

html[data-auth-theme="dark"] .b-auth-page .b-auth-page__apps span:nth-child(2) {
  background: #1a9ede;
}

html[data-auth-theme="dark"] .b-auth-page .b-auth-page__apps span:nth-child(3) {
  background: #8b5cf6;
}

html[data-auth-theme="dark"] .b-auth-page .b-auth-page__apps span:nth-child(4) {
  background: #14b8a6;
}

html[data-auth-theme="dark"] .b-auth-page .b-auth-page__apps span:nth-child(5) {
  background: #f5a623;
}

html[data-auth-theme="dark"] .b-auth-page .b-auth-page__apps span:nth-child(6) {
  background: #ec4899;
}

html:not([data-auth-theme="dark"]) .b-auth-page .b-auth-page__apps span:nth-child(1) {
  background: #3d7bfd;
}

html:not([data-auth-theme="dark"]) .b-auth-page .b-auth-page__apps span:nth-child(2) {
  background: #1a9ede;
}

html:not([data-auth-theme="dark"]) .b-auth-page .b-auth-page__apps span:nth-child(3) {
  background: #8b5cf6;
}

html:not([data-auth-theme="dark"]) .b-auth-page .b-auth-page__apps span:nth-child(4) {
  background: #14b8a6;
}

html:not([data-auth-theme="dark"]) .b-auth-page .b-auth-page__apps span:nth-child(5) {
  background: #f5a623;
}

html:not([data-auth-theme="dark"]) .b-auth-page .b-auth-page__apps span:nth-child(6) {
  background: #ec4899;
}

html[data-auth-theme="dark"] .b-auth-page .b-auth-theme__menu button:hover {
  background: rgb(255 255 255 / 8%);
}

html[data-auth-theme="dark"] .b-auth-page .b-auth-theme__menu button.is-active {
  color: #2ecc9b;
}

html[data-auth-theme="dark"] .b-auth-page .b-check input[type="checkbox"] {
  accent-color: #6d4aff;
}

/* ── Forgot password recovery: recover account / verify / code modal ──── */

.b-recover-card .b-recover-head {
  margin-bottom: 20px;
}

.b-recover-desc {
  color: rgb(92 89 88);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  margin: 0 0 18px;
}

.b-recover-identity {
  margin-bottom: 20px;
}

.b-recover-error {
  margin-bottom: 0;
}

.b-recover-foot {
  margin-top: 24px;
  text-align: center;
}

html body .b-auth-page.b-auth-page--recover .b-recover-foot a,
html body .b-auth-page.b-auth-page--recover .b-recover-signinfoot a {
  color: rgb(16 132 111);
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  text-decoration: underline;
}

.b-recover-signinfoot {
  margin-top: 22px;
  text-align: center;
}

.b-recover-nocode {
  display: inline-block;
  margin-top: 10px;
}

.b-recover-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
}

.b-recover-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 45%);
}

.b-recover-modal__box {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 28px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 60px rgb(0 0 0 / 30%);
}

html body .b-auth-page .b-recover-modal__box h2 {
  color: rgb(12 12 20);
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  margin-bottom: 12px;
}

html body .b-auth-page.b-auth-page--recover .b-recover-modal__box p {
  color: rgb(92 89 88);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  margin-bottom: 22px;
}

.b-recover-modal__box .b-btn + .b-btn {
  margin-top: 10px;
}

html[data-auth-theme="dark"] .b-recover-modal__box {
  background: #1e1e22;
}

html[data-auth-theme="dark"] body .b-auth-page.b-auth-page--recover .b-recover-modal__box h2 {
  color: #e7e7ef;
}

html[data-auth-theme="dark"] body .b-auth-page .b-recover-modal__box p {
  color: #b9b9c6;
}

/* ── "Trouble signing in?" popover ───────────────────────────────────── */

.b-trouble {
  position: relative;
  display: inline-block;
}

.b-trouble__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  width: 258px;
  padding: 6px;
  border: 1px solid #e4e7e5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgb(0 0 0 / 18%);
  color: rgb(12 12 20);
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.b-auth-page .b-auth-card__foot .b-trouble__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 8px;
  color: rgb(12 12 20);
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-decoration: none;
}

.b-auth-page .b-auth-card__foot .b-trouble__item:hover {
  background: #f1f3f4;
}

.b-trouble__item .h-icon {
  width: 18px;
  height: 18px;
  flex: none;
  color: #6b6b76;
}

.b-auth-page .b-auth-card__foot .b-trouble__item > span {
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: rgb(12 12 20);
}

.b-trouble__label {
  flex: 1;
}

.b-trouble__external {
  width: 16px;
  height: 16px;
}

.b-trouble__divider {
  height: 1px;
  margin: 4px 6px;
  background: #e4e7e5;
}

html[data-auth-theme="dark"] .b-trouble__menu {
  background: #1e1e22;
  border-color: rgb(255 255 255 / 14%);
  color: #e7e7ef;
}

html[data-auth-theme="dark"] .b-auth-page .b-auth-card__foot .b-trouble__item,
html[data-auth-theme="dark"] .b-auth-page .b-auth-card__foot .b-trouble__item > span {
  color: #e7e7ef;
}

html[data-auth-theme="dark"] .b-auth-page .b-auth-card__foot .b-trouble__item:hover {
  background: rgb(255 255 255 / 8%);
}

html[data-auth-theme="dark"] .b-trouble__divider {
  background: rgb(255 255 255 / 14%);
}

/* ── Sign-in password step: welcome head, outside back, reveal toggle ─── */

.b-auth-signin-layout {
  --max-w-custom: 30rem;
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Desktop: keep the box at the vertical centre of the viewport on every step
 * (email, password, 2FA), regardless of the card's height. The footer is taken
 * out of flow and pinned to the bottom so it cannot shift the card up. */
@media (min-width: 901px) {
  .b-auth-page--signin {
    justify-content: center;
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .b-auth-page--signin .b-auth-page__footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin-inline: auto;
    margin-top: 6px;
    margin-bottom: 6px;
  }
}

.b-auth-back-outside {
  position: absolute;
  left: calc(50% - var(--max-w-custom) / 2 - 58px);
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e4e7e5;
  border-radius: 8px;
  background: #fff;
  color: #1c1b2a;
  box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
  cursor: pointer;
}

.b-auth-back-outside .h-icon {
  width: 20px;
  height: 20px;
}

.b-auth-back-outside:hover {
  background: #f4f5f7;
}

.b-auth-card__head--welcome .h-icon {
  width: 16px;
  height: 16px;
}

.b-auth-identity {
  display: flex;
  align-items: center;
  gap: 8px;
}

.b-auth-password {
  position: relative;
}

html body .b-auth-page .b-auth-password .b-field__input {
  padding-right: 44px;
}

html body .b-auth-page .b-field__input.is-invalid,
html body .b-auth-page .b-field__input.is-invalid:focus,
html body .b-auth-page .b-auth-password .b-field__input.is-invalid,
html body .b-auth-page .b-auth-password .b-field__input.is-invalid:focus {
  border-color: #d92c20;
}

html body .b-auth-page .b-auth-password .b-field__input.is-invalid:focus {
  border-color: #d92c20;
  box-shadow: 0 0 0 2px rgb(217 44 32 / 16%);
}

html body .b-auth-page .b-auth-password .b-field__input.is-mismatch,
html body .b-auth-page .b-auth-password .b-field__input.is-mismatch:focus {
  border-color: #dc3251;
}

.b-auth-password__toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #6b6b76;
  cursor: pointer;
}

.b-auth-password__toggle .h-icon {
  width: 18px;
  height: 18px;
}

.b-auth-password__toggle:hover {
  background: rgb(0 0 0 / 5%);
}

html[data-auth-theme="dark"] .b-auth-back-outside {
  background: #1e1e22;
  border-color: rgb(255 255 255 / 14%);
  color: #e7e7ef;
}

/* ── Forgot email / username recovery ─────────────────────────────────── */

/* Layout: a floating back arrow to the left of the card. */
.b-forgot-layout {
  --max-w-custom: 30rem;
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.b-forgot-back {
  position: absolute;
  left: calc(50% - var(--max-w-custom) / 2 - 58px);
  top: 40%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e4e7e5;
  border-radius: 8px;
  background: #fff;
  color: #1c1b2a;
  box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
  cursor: pointer;
}

.b-forgot-back .h-icon {
  width: 20px;
  height: 20px;
}

.b-forgot-back:hover {
  background: #f4f5f7;
}

.b-forgot-card__head {
  margin-bottom: 20px;
}

/* Email / Phone tabs with an active underline. */
.b-forgot-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.b-forgot-tab {
  flex: 1;
  padding: 12px 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: rgb(92 89 88);
  font: inherit;
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  cursor: pointer;
}

.b-forgot-tab.is-active {
  border-bottom-color: #00c19c;
  color: rgb(12 12 20);
}

.b-forgot-desc {
  color: rgb(92 89 88);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  margin-bottom: 22px;
}

.b-forgot-panel .b-auth-form {
  gap: 18px;
}

.b-forgot-panel .b-auth-form button[type="submit"] {
  margin-top: 18px;
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

/* Keep both panels the same height so the button never jumps between tabs. */
html body .b-auth-page .b-forgot-panel .b-field__input {
  height: 46px;
}

.b-forgot-error {
  margin-bottom: 0;
}

/* Phone field: country selector joined to the number input. */
.b-forgot-phone {
  display: flex;
  align-items: stretch;
  border: 1px solid #c4c4cc;
  border-radius: 8px;
  overflow: visible;
  background: var(--surface);
}

.b-forgot-phone:focus-within {
  border-color: #6d4aff;
  box-shadow: 0 0 0 2px rgb(109 74 255 / 22%);
}

.b-forgot-country {
  position: relative;
  flex: none;
}

.b-forgot-country__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid #e4e7e5;
  background: none;
  color: rgb(12 12 20);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.b-forgot-country__flag {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  flex: none;
}

.b-forgot-country__chevron {
  width: 12px;
  height: 12px;
  margin-left: 2px;
}

.b-forgot-country__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 60;
  width: 300px;
  max-width: calc(100vw - 48px);
  background: #fff;
  border: 1px solid #e4e7e5;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgb(0 0 0 / 18%);
  overflow: hidden;
}

.b-forgot-country__search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px;
  padding: 8px 10px;
  border: 1px solid #6d4aff;
  border-radius: 8px;
}

.b-forgot-country__search .h-icon {
  width: 16px;
  height: 16px;
  flex: none;
  color: #8b8b96;
}

.b-forgot-country__search input {
  width: 100%;
  border: 0;
  outline: none;
  font: inherit;
  font-size: 14px;
  color: rgb(12 12 20);
}

.b-forgot-country__list {
  max-height: 280px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.b-forgot-country__option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 14px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: rgb(12 12 20);
  text-align: left;
  cursor: pointer;
}

.b-forgot-country__option:hover,
.b-forgot-country__option.is-selected {
  background: #f1f3f4;
}

.b-forgot-country__name {
  flex: 1;
}

.b-forgot-country__dial {
  color: #6b6b76;
}

.b-forgot-phone__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  color: rgb(12 12 20);
  background: transparent;
}

.b-forgot-phone__input::placeholder {
  color: #9b9ba6;
}

.b-forgot-card__foot {
  margin-top: 9px;
}

html body .b-auth-page .b-auth-card__foot.b-forgot-card__foot a {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  background: #fff;
  color: rgb(16 132 111);
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-decoration: none;
}

html body .b-auth-page .b-auth-card__foot.b-forgot-card__foot a:hover {
  background: rgb(194 193 192 / 20%);
}

/* Dark mode: keep the recovery surfaces readable. */
html[data-auth-theme="dark"] .b-forgot-back {
  background: #1e1e22;
  border-color: rgb(255 255 255 / 14%);
  color: #e7e7ef;
}

html[data-auth-theme="dark"] .b-forgot-tab.is-active {
  color: #e7e7ef;
}

html[data-auth-theme="dark"] .b-forgot-country__menu {
  background: #1e1e22;
  border-color: rgb(255 255 255 / 14%);
}

html[data-auth-theme="dark"] .b-forgot-country__option:hover,
html[data-auth-theme="dark"] .b-forgot-country__option.is-selected {
  background: rgb(255 255 255 / 8%);
}

/* ── Thin scrollbars, revealed only while their container is hovered ────
   One declaration for the scrollbar; the hover rule only swaps a variable,
   so nothing gets crossed out as an override. */
@supports (scrollbar-width: auto) {
  html:not(.feature-scrollbars-off),
  html:not(.feature-scrollbars-off) * {
    --sb-thumb: var(--scrollbar-thumb-color);
    scrollbar-width: thin;
    scrollbar-color: var(--sb-thumb) transparent;
  }

  @media (hover: hover) and (pointer: fine) {
    html:not(.feature-scrollbars-off)
      *:not(:hover, :focus, :focus-within, .scrollbar-always-visible) {
      --sb-thumb: transparent;
    }
  }
}

/* ── Product signup: full-bleed mint canvas, Proton-style shell ───────── */
/* The .b-signup-* component is scoped to its own page; Biome's descending-
 * specificity check compares its element selectors to unrelated, more specific
 * recover/auth rules that appear earlier in the shared stylesheet. */
/* biome-ignore-start lint/style/noDescendingSpecificity: scoped signup component */

.b-signup-page.b-auth-page {
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  overflow: visible;
  background: radial-gradient(38.47% 29.48% at 50% -3.24%, white 0%, transparent 100%), #f5fff9;
  background-attachment: fixed;
  color: rgb(12 12 20);
}

html[data-auth-theme="dark"] .b-signup-page.b-auth-page {
  background: radial-gradient(ellipse 90% 70% at 50% 20%, #0f3a30 0%, #0b2924 45%, #08110f 100%);
  background-attachment: fixed;
  color: #e7e7ef;
}

.b-signup-page__bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

html[data-auth-theme="dark"] .b-signup-page__bg {
  background:
    radial-gradient(38% 42% at 85% 8%, rgb(0 193 156 / 12%), transparent 70%),
    radial-gradient(46% 50% at 8% 92%, rgb(20 151 118 / 12%), transparent 70%);
}

.b-signup-nav {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: none;
  padding: 22px 45px;
}

.b-signup-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgb(12 12 20);
  text-decoration: none;
}

html[data-auth-theme="dark"] .b-signup-nav__brand {
  color: #e7e7ef;
}

.b-signup-nav__brand .h-icon {
  width: 30px;
  height: 30px;
}

.b-signup-nav__brand img {
  filter: none;
}

.b-signup-nav__name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.b-signup-nav__kind {
  color: #149776;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: normal;
}

html[data-auth-theme="dark"] .b-signup-nav__kind {
  color: #35d0aa;
}

html[data-auth-theme="dark"] .b-signup-nav__name {
  color: #fff;
}

.b-signup-nav__audience {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.b-signup-nav__audience a,
.b-signup-nav__audience span {
  color: rgb(12 12 20 / 62%);
  text-decoration: none;
  cursor: pointer;
}

html[data-auth-theme="dark"] .b-signup-nav__audience a,
html[data-auth-theme="dark"] .b-signup-nav__audience span {
  color: rgb(231 231 239 / 62%);
}

.b-signup-nav__audience a.is-active,
.b-signup-nav__audience span.is-active {
  color: var(--green-deep);
  padding-bottom: 4px;
  border-bottom: 2px solid var(--green-deep);
}

html[data-auth-theme="dark"] .b-signup-nav__audience a.is-active,
html[data-auth-theme="dark"] .b-signup-nav__audience span.is-active {
  color: #35d0aa;
  border-color: #35d0aa;
}

.b-signup-nav__tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.b-signup-nav__locale {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-deep);
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
}

html[data-auth-theme="dark"] .b-signup-nav__locale {
  color: #35d0aa;
}

.b-signup-nav__locale .h-icon {
  width: 16px;
  height: 16px;
}

.b-signup-nav__locale .b-signup-nav__chevron {
  width: 12px;
  height: 12px;
}

.b-signup-nav__theme {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--green-deep);
  cursor: pointer;
}

html[data-auth-theme="dark"] .b-signup-nav__theme {
  color: #35d0aa;
}

.b-signup-nav__theme .h-icon {
  width: 18px;
  height: 18px;
}

.b-signup-page__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  padding: 22px 18px 40px;
  flex: 1;
}

.b-signup-hero {
  width: 100%;
  max-width: 620px;
  text-align: center;
}

.b-signup-hero h1 {
  margin: 0 0 10px;
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.6px;
  color: rgb(12 12 20);
}

html[data-auth-theme="dark"] .b-signup-hero h1 {
  color: #e7e7ef;
}

.b-signup-hero p {
  margin: 0;
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: rgb(12 12 20 / 66%);
}

html[data-auth-theme="dark"] .b-signup-hero p {
  color: rgb(231 231 239 / 66%);
}

.b-signup-hero__features {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 22px;
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--green-dark);
}

html[data-auth-theme="dark"] .b-signup-hero__features {
  color: #7fe3c6;
}

.b-signup-hero__features > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  border-right: 1px solid rgb(12 12 20 / 16%);
}

html[data-auth-theme="dark"] .b-signup-hero__features > span {
  border-color: rgb(255 255 255 / 16%);
}

.b-signup-hero__features > span:last-child {
  border-right: 0;
}

.b-signup-hero__features .h-icon {
  width: 18px;
  height: 18px;
  color: var(--green-deep);
}

html[data-auth-theme="dark"] .b-signup-hero__features .h-icon {
  color: #35d0aa;
}

.b-signup-card {
  --max-w-custom: 30rem;
  width: 100%;
  max-width: var(--max-w-custom);
  box-sizing: border-box;
  padding: 36px 45px;
  border: 1px solid rgb(20 151 118 / 14%);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgb(11 99 85 / 14%);
}

html[data-auth-theme="dark"] .b-signup-card {
  background: #14181a;
  border-color: rgb(255 255 255 / 10%);
}

.b-signup-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: rgb(12 12 20 / 36%);
}

html[data-auth-theme="dark"] .b-signup-steps {
  color: rgb(231 231 239 / 40%);
}

.b-signup-steps span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.b-signup-steps b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgb(12 12 20 / 10%);
  color: rgb(12 12 20 / 55%);
  font-size: 11px;
  font-weight: 600;
}

html[data-auth-theme="dark"] .b-signup-steps b {
  background: rgb(255 255 255 / 12%);
  color: rgb(231 231 239 / 60%);
}

.b-signup-steps span.is-current {
  color: var(--green-deep);
}

html[data-auth-theme="dark"] .b-signup-steps span.is-current {
  color: #35d0aa;
}

.b-signup-steps span.is-current b {
  background: var(--green-deep);
  color: #fff;
}

html[data-auth-theme="dark"] .b-signup-steps span.is-current b {
  background: #35d0aa;
  color: #08110f;
}

.b-signup-card__head {
  margin-bottom: 24px;
}

.b-signup-card__head h2 {
  margin: 0 0 6px;
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: rgb(12 12 20);
}

html[data-auth-theme="dark"] .b-signup-card__head h2 {
  color: #e7e7ef;
}

.b-signup-card__head p {
  margin: 0;
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 14px;
  color: rgb(12 12 20 / 62%);
}

html[data-auth-theme="dark"] .b-signup-card__head p {
  color: rgb(231 231 239 / 62%);
}

.b-signup-card .b-auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.b-signup-card__foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgb(12 12 20 / 8%);
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 14px;
  text-align: center;
  color: rgb(12 12 20 / 70%);
}

html[data-auth-theme="dark"] .b-signup-card__foot {
  border-color: rgb(255 255 255 / 10%);
  color: rgb(231 231 239 / 70%);
}

.b-signup-card__foot a {
  color: rgb(16 132 111);
  font-weight: 500;
  text-decoration: underline;
}

html[data-auth-theme="dark"] .b-signup-card__foot a {
  color: #35d0aa;
}

.b-signup-page .b-auth-page__footer {
  position: relative;
  z-index: 1;
  color: rgb(12 12 20 / 55%);
}

html[data-auth-theme="dark"] .b-signup-page .b-auth-page__footer {
  color: rgb(231 231 239 / 55%);
}

@media (max-width: 720px) {
  .b-signup-nav {
    flex-wrap: wrap;
    padding: 18px 20px;
  }

  .b-signup-nav__audience {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .b-signup-hero h1 {
    font-size: 30px;
  }

  /* Proton-style: three equal columns on one row, icon above label. */
  .b-signup-hero__features {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
  }

  .b-signup-hero__features > span {
    flex: 1 1 0;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    border-right: 0;
    text-align: center;
  }

  .b-signup-card {
    padding: 28px 24px;
  }
}

/* Step 1: full-width plan selection (Proton-style). */
.b-plan-step {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.b-plan-step__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.b-plan-step__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: rgb(12 12 20);
}

html[data-auth-theme="dark"] .b-plan-step__title {
  color: #e7e7ef;
}

.b-plan-step__num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

html[data-auth-theme="dark"] .b-plan-step__num {
  background: #35d0aa;
  color: #08110f;
}

.b-plan-step__cycle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgb(12 12 20 / 10%);
  border-radius: 999px;
  background: #fff;
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgb(12 12 20 / 60%);
}

html[data-auth-theme="dark"] .b-plan-step__cycle {
  background: #14181a;
  border-color: rgb(255 255 255 / 12%);
  color: rgb(231 231 239 / 60%);
}

.b-plan-cycle__btn {
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgb(12 12 20 / 60%);
  cursor: pointer;
}

html[data-auth-theme="dark"] .b-plan-cycle__btn {
  color: rgb(231 231 239 / 60%);
}

.b-plan-cycle__btn.is-active {
  background: var(--green-deep);
  color: #fff;
}

html[data-auth-theme="dark"] .b-plan-cycle__btn.is-active {
  background: #35d0aa;
  color: #08110f;
}

.b-plan-step__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 16px;
}

.b-plan-card {
  position: relative;
  box-sizing: border-box;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 280px;
  min-height: 300px;
  padding: 22px 24px;
  border: 1px solid rgb(20 151 118 / 30%);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

html[data-auth-theme="dark"] .b-plan-card {
  border-color: rgb(53 208 170 / 30%);
  background: #14181a;
}

/* Proton-style hover: a soft tint of the brand colour, no lift or shadow. */
.b-plan-card:hover {
  background: #e2fff0;
}

html[data-auth-theme="dark"] .b-plan-card:hover {
  background: rgb(53 208 170 / 10%);
}

.b-plan-card.is-selected,
.b-plan-card.is-selected:hover {
  border-color: var(--green-deep);
  box-shadow:
    0 0 0 2px var(--green-deep),
    0 0 18px 2px rgb(0 193 156 / 45%);
}

html[data-auth-theme="dark"] .b-plan-card.is-selected,
html[data-auth-theme="dark"] .b-plan-card.is-selected:hover {
  border-color: #35d0aa;
  box-shadow:
    0 0 0 2px #35d0aa,
    0 0 18px 2px rgb(53 208 170 / 45%);
}

.b-plan-card--featured {
  padding-top: 38px;
}

.b-plan-card__ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 6px 0;
  border-radius: 13px 13px 0 0;
  background: var(--green-deep);
  color: #fff;
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

html[data-auth-theme="dark"] .b-plan-card__ribbon {
  background: #35d0aa;
  color: #08110f;
}

.b-plan-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.b-plan-card__name {
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: rgb(12 12 20);
}

html[data-auth-theme="dark"] .b-plan-card__name {
  color: #e7e7ef;
}

.b-plan-card__radio {
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  border: 1px solid rgb(12 12 20 / 28%);
  border-radius: 50%;
}

html[data-auth-theme="dark"] .b-plan-card__radio {
  border-color: rgb(255 255 255 / 32%);
}

.b-plan-card__radio.is-checked {
  border: 5px solid var(--green-deep);
  background: #fff;
}

html[data-auth-theme="dark"] .b-plan-card__radio.is-checked {
  border-color: #35d0aa;
  background: #14181a;
}

.b-plan-card__price {
  margin-top: 18px;
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: rgb(12 12 20);
}

.b-plan-card__price--talk {
  font-size: 26px;
}

html[data-auth-theme="dark"] .b-plan-card__price {
  color: #e7e7ef;
}

.b-plan-card__note {
  margin-top: 2px;
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 13px;
  color: rgb(12 12 20 / 55%);
}

html[data-auth-theme="dark"] .b-plan-card__note {
  color: rgb(231 231 239 / 55%);
}

.b-plan-card__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgb(12 12 20 / 10%);
  list-style: none;
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 13px;
  color: rgb(72 83 81);
}

html[data-auth-theme="dark"] .b-plan-card__features {
  border-color: rgb(255 255 255 / 10%);
  color: rgb(231 231 239 / 72%);
}

.b-plan-card__features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.b-plan-card__features .h-icon {
  width: 16px;
  height: 16px;
  color: var(--green-deep);
}

html[data-auth-theme="dark"] .b-plan-card__features .h-icon {
  color: #35d0aa;
}

.b-plan-step__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  width: 100%;
  max-width: 1040px;
  margin: 18px auto 0;
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 13px;
}

.b-plan-step__currency {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.b-plan-step__currency .h-icon {
  width: 15px;
  height: 15px;
}

.b-plan-step__currency {
  color: rgb(16 132 111);
  font-weight: 600;
}

html[data-auth-theme="dark"] .b-plan-step__currency {
  color: #35d0aa;
}

/* Step 2: account creation - two columns like Proton. */
.b-account-step {
  width: 100%;
  max-width: 1040px;
  margin: 56px auto 0;
}

.b-account-step__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: rgb(12 12 20);
}

html[data-auth-theme="dark"] .b-account-step__title {
  color: #e7e7ef;
}

.b-account-step__num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

html[data-auth-theme="dark"] .b-account-step__num {
  background: #35d0aa;
  color: #08110f;
}

.b-account-step__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

@media (max-width: 860px) {
  .b-account-step__grid {
    grid-template-columns: 1fr;
  }
}

.b-account-step__form .b-auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.b-account-step__form .b-btn--primary {
  border-radius: 999px;
  width: auto;
  align-self: center;
  min-width: 220px;
  padding-inline: 28px;
}

.b-signup-page--business #submitButton,
.b-signup-page--business #accountTerms {
  display: none;
}

.b-account-step__foot {
  margin: 14px 0 0;
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.6;
  color: rgb(12 12 20 / 55%);
  text-align: center;
}

html[data-auth-theme="dark"] .b-account-step__foot {
  color: rgb(231 231 239 / 55%);
}

.b-account-step__foot a,
.b-account-step__signin a {
  color: rgb(16 132 111);
  text-decoration: underline;
}

html[data-auth-theme="dark"] .b-account-step__foot a,
html[data-auth-theme="dark"] .b-account-step__signin a {
  color: #35d0aa;
}

.b-account-step__signin {
  margin: 18px 0 0;
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 13px;
  color: rgb(12 12 20 / 70%);
  text-align: center;
}

html[data-auth-theme="dark"] .b-account-step__signin {
  color: rgb(231 231 239 / 70%);
}

.b-account-step__aside {
  box-sizing: border-box;
  padding: 22px 24px;
  border: 1px solid rgb(20 151 118 / 18%);
  border-radius: 12px;
  background: rgb(255 255 255 / 70%);
}

@media (max-width: 767px) {
  .b-account-step__aside {
    display: none;
  }
}

html[data-auth-theme="dark"] .b-account-step__aside {
  background: rgb(255 255 255 / 4%);
  border-color: rgb(255 255 255 / 12%);
}

.b-account-step__aside h3 {
  margin: 0 0 16px;
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: rgb(12 12 20);
}

html[data-auth-theme="dark"] .b-account-step__aside h3 {
  color: #e7e7ef;
}

.b-account-step__aside ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 12.5px;
  color: rgb(72 83 81);
}

html[data-auth-theme="dark"] .b-account-step__aside ul {
  color: rgb(231 231 239 / 72%);
}

.b-account-step__aside li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.b-account-step__aside .h-icon {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--green-deep);
}

html[data-auth-theme="dark"] .b-account-step__aside .h-icon {
  color: #35d0aa;
}

.b-account-step__aside p {
  margin: 0;
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.6;
  color: rgb(12 12 20 / 50%);
}

html[data-auth-theme="dark"] .b-account-step__aside p {
  color: rgb(231 231 239 / 50%);
}

/* Step 3: checkout */
.b-checkout-step {
  width: 100%;
  max-width: 1040px;
  margin: 56px auto 0;
}

@media (max-width: 767px) {
  .b-checkout-step .b-account-step__grid {
    grid-template-columns: 1fr;
  }

  .b-checkout-summary {
    order: 1;
  }

  .b-checkout-step__form {
    order: 2;
  }
}

.b-pay-methods {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.b-pay-methods__legend {
  padding: 0;
  margin-bottom: 8px;
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgb(12 12 20);
}

html[data-auth-theme="dark"] .b-pay-methods__legend {
  color: #e7e7ef;
}

.b-pay-method {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgb(12 12 20);
  cursor: pointer;
}

html[data-auth-theme="dark"] .b-pay-method {
  color: #e7e7ef;
}

.b-pay-method input[type="radio"] {
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--green-deep);
  cursor: pointer;
}

.b-pay-method__logo {
  flex: 0 0 auto;
  width: auto;
  height: 20px;
  object-fit: contain;
}

.b-pay-method__card-icon {
  width: 20px;
  height: 20px;
}

html[data-auth-theme="dark"] .b-pay-method input[type="radio"] {
  accent-color: #35d0aa;
}

/* Password requirements popover (Proton-style) */
.b-pw-field {
  position: relative;
}

.b-pw-popover {
  position: absolute;
  top: 0;
  left: calc(100% + 24px);
  z-index: 30;
  box-sizing: border-box;
  width: 300px;
  padding: 16px 24px 16px 20px;
  background: #fff;
  border: 1px solid rgb(194 185 229);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 16%);
  font-family: InterVariable, system-ui, sans-serif;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0.15s;
  pointer-events: none;
}

.b-pw-popover.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.b-pw-popover::after {
  content: "";
  position: absolute;
  top: 44px;
  left: -6px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-bottom: 1px solid rgb(194 185 229);
  border-left: 1px solid rgb(194 185 229);
  transform: rotate(45deg);
}

.b-pw-popover__title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: rgb(12 12 20);
}

.b-pw-popover__bars {
  display: flex;
  gap: 4px;
  height: 0;
  margin-bottom: 0;
}

.b-pw-popover.has-value .b-pw-popover__bars {
  height: 4px;
  margin-bottom: 12px;
}

.b-pw-popover__bars span {
  flex: 1;
  border-radius: 2px;
  background: #c2b9e5;
}

.b-pw-popover__bars span:nth-child(2) {
  opacity: 0.7;
}

.b-pw-popover__bars span:nth-child(3) {
  opacity: 0.5;
}

.b-pw-popover.is-vulnerable .b-pw-popover__bars span:nth-child(1) {
  background: #dc3251;
}

.b-pw-popover.is-weak .b-pw-popover__bars span:nth-child(-n + 2) {
  background: #ff9900;
}

.b-pw-popover.is-strong .b-pw-popover__bars span {
  background: #1ea885;
}

.b-pw-popover__heading {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: rgb(12 12 20);
}

.b-pw-popover__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.b-pw-popover__item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 20px;
  font-size: 14px;
  font-weight: 400;
  color: rgb(12 12 20);
}

.b-pw-popover__item.is-met .b-pw-popover__label {
  color: rgb(12 12 20 / 55%);
  text-decoration: line-through;
}

html[data-auth-theme="dark"] .b-pw-popover__item.is-met .b-pw-popover__label {
  color: rgb(231 231 239 / 55%);
}

.b-pw-popover__check {
  position: relative;
  box-sizing: border-box;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border: 1px solid rgb(194 185 229);
  border-radius: 50%;
}

.b-pw-popover__item.is-met .b-pw-popover__check {
  border-color: var(--green-deep);
}

.b-pw-popover__item.is-met .b-pw-popover__check::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid var(--green-deep);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

html[data-auth-theme="dark"] .b-pw-popover {
  background: #14181a;
  border-color: rgb(255 255 255 / 14%);
}

html[data-auth-theme="dark"] .b-pw-popover::after {
  background: #14181a;
  border-color: rgb(255 255 255 / 14%);
}

html[data-auth-theme="dark"] .b-pw-popover__title,
html[data-auth-theme="dark"] .b-pw-popover__heading,
html[data-auth-theme="dark"] .b-pw-popover__item {
  color: #e7e7ef;
}

@media (max-width: 1000px) {
  .b-pw-popover {
    top: calc(100% + 8px);
    left: 0;
    transform: translateY(-8px);
  }

  .b-pw-popover.is-open {
    transform: translateY(0);
  }

  .b-pw-popover::after {
    top: -6px;
    left: 24px;
    border-width: 1px 0 0 1px;
  }
}

.b-checkout-card {
  margin-bottom: 18px;
}

.b-checkout-card__row {
  display: flex;
  gap: 10px;
}

.b-checkout-card__mm,
.b-checkout-card__cvc {
  flex: 0 0 92px;
}

.b-checkout-billing {
  margin-bottom: 22px;
}

.b-checkout__submit {
  border-radius: 999px;
  width: 100%;
}

.b-checkout__guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px 0 0;
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 13px;
  color: var(--green-deep);
}

html[data-auth-theme="dark"] .b-checkout__guarantee {
  color: #35d0aa;
}

.b-checkout__guarantee .h-icon {
  width: 15px;
  height: 15px;
}

.b-checkout__terms {
  margin: 18px 0 0;
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 12px;
  text-align: center;
  color: rgb(12 12 20 / 55%);
}

html[data-auth-theme="dark"] .b-checkout__terms {
  color: rgb(231 231 239 / 55%);
}

.b-checkout__terms a {
  color: rgb(16 132 111);
  text-decoration: underline;
}

html[data-auth-theme="dark"] .b-checkout__terms a {
  color: #35d0aa;
}

.b-checkout-summary {
  box-sizing: border-box;
  padding: 22px 24px;
  border: 1px solid rgb(20 151 118 / 18%);
  border-radius: 12px;
  background: rgb(255 255 255 / 70%);
}

html[data-auth-theme="dark"] .b-checkout-summary {
  background: rgb(255 255 255 / 4%);
  border-color: rgb(255 255 255 / 12%);
}

.b-checkout-summary h3 {
  margin: 0 0 18px;
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: rgb(12 12 20);
}

html[data-auth-theme="dark"] .b-checkout-summary h3 {
  color: #e7e7ef;
}

.b-checkout-summary__plan {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgb(12 12 20 / 8%);
}

html[data-auth-theme="dark"] .b-checkout-summary__plan {
  border-color: rgb(255 255 255 / 10%);
}

.b-checkout-summary__plan strong {
  display: block;
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 14px;
  color: rgb(12 12 20);
}

html[data-auth-theme="dark"] .b-checkout-summary__plan strong {
  color: #e7e7ef;
}

.b-checkout-summary__cycle {
  margin-top: 3px;
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 12px;
  color: var(--green-deep);
}

html[data-auth-theme="dark"] .b-checkout-summary__cycle {
  color: #35d0aa;
}

.b-checkout-summary__price {
  text-align: right;
}

.b-checkout-summary__price small {
  display: block;
  margin-top: 2px;
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 11px;
  color: rgb(12 12 20 / 50%);
  text-decoration: line-through;
}

html[data-auth-theme="dark"] .b-checkout-summary__price small {
  color: rgb(231 231 239 / 50%);
}

.b-checkout-summary__features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 12.5px;
  color: rgb(72 83 81);
}

html[data-auth-theme="dark"] .b-checkout-summary__features {
  color: rgb(231 231 239 / 72%);
}

.b-checkout-summary__features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.b-checkout-summary__features .h-icon {
  width: 14px;
  height: 14px;
  color: var(--green-deep);
}

html[data-auth-theme="dark"] .b-checkout-summary__features .h-icon {
  color: #35d0aa;
}

.b-checkout-summary__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgb(12 12 20 / 8%);
  font-family: InterVariable, system-ui, sans-serif;
  font-size: 13px;
  color: rgb(12 12 20 / 70%);
}

html[data-auth-theme="dark"] .b-checkout-summary__total {
  border-color: rgb(255 255 255 / 10%);
  color: rgb(231 231 239 / 70%);
}

.b-checkout-summary__total strong {
  font-size: 14px;
  color: rgb(12 12 20);
}

html[data-auth-theme="dark"] .b-checkout-summary__total strong {
  color: #e7e7ef;
}

/* Mobile: center plans, forms and step headings like Proton. */
@media (max-width: 767px) {
  .b-plan-step__grid {
    justify-content: center;
  }

  .b-plan-card {
    flex: 0 1 320px;
    width: 100%;
    max-width: 320px;
    border-radius: 16px;
  }

  .b-plan-step__head {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .b-plan-step__title,
  .b-account-step__title,
  .b-checkout-step .b-account-step__title {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  .b-plan-step__num,
  .b-account-step__num {
    width: 32px;
    height: 32px;
  }

  .b-plan-step__meta {
    justify-content: center;
  }

  .b-account-step__foot,
  .b-account-step__signin,
  .b-checkout__guarantee,
  .b-checkout__terms {
    text-align: center;
  }

  .b-account-step__form,
  .b-checkout-step__form,
  .b-checkout-summary {
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
  }
}

/* biome-ignore-end lint/style/noDescendingSpecificity: scoped signup component */

/* Must stay last: component rules above set display: flex on hidden steps. */
[hidden] {
  display: none;
}
