:root {
  --portal-navy: #061a38;
  --portal-navy-soft: #0b2d62;
  --portal-blue: #155dd7;
  --portal-blue-bright: #2d76ed;
  --portal-orange: #e85519;
  --portal-green: #087b64;
  --portal-text: #10213d;
  --portal-muted: #65738a;
  --portal-line: #dce5f0;
  --portal-soft: #f4f7fb;
  --portal-white: #fff;
  --portal-shadow: 0 24px 70px rgba(8, 33, 74, 0.13);
}

body.portal-page {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--portal-text);
  background: var(--portal-soft);
}

.portal-page button,
.portal-page input,
.portal-page select {
  font: inherit;
}

.portal-page svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-public-header {
  height: 82px;
  padding: 0 clamp(22px, 4vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
  z-index: 50;
  border-bottom: 1px solid rgba(211, 222, 237, 0.9);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 30px rgba(4, 27, 62, 0.05);
}

.portal-public-brand {
  width: 146px;
  display: inline-flex;
}

.portal-public-brand img {
  width: 100%;
  height: auto;
}

.portal-public-security {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4d607b;
}

.portal-public-security .portal-shield {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid #b9d4cb;
  border-radius: 10px;
  color: var(--portal-green);
  background: #effaf6;
}

.portal-public-security svg {
  width: 20px;
  height: 20px;
}

.portal-public-security > span:last-child {
  display: grid;
  line-height: 1.25;
}

.portal-public-security small {
  color: var(--portal-green);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.portal-public-security strong {
  font-size: 12px;
}

.portal-back-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475a75;
  font-size: 13px;
  font-weight: 750;
}

.portal-back-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.portal-back-link:hover {
  color: var(--portal-blue);
}

.portal-back-link:hover svg {
  transform: translateX(-3px);
}

.portal-auth-view {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(490px, 0.9fr);
  background: white;
}

.portal-auth-view[hidden],
.portal-public-header[hidden] {
  display: none !important;
}

.portal-auth-visual {
  min-height: 760px;
  padding: clamp(70px, 8vw, 125px) clamp(45px, 7vw, 125px) 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 74% 16%, rgba(65, 127, 238, 0.53), transparent 29%),
    radial-gradient(circle at 9% 91%, rgba(232, 85, 25, 0.21), transparent 26%),
    linear-gradient(137deg, #06172f 0%, #08295e 61%, #0b459e 100%);
}

.portal-auth-visual::before {
  content: "";
  width: 430px;
  height: 430px;
  position: absolute;
  right: -170px;
  top: -150px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255, 255, 255, 0.025), 0 0 0 110px rgba(255, 255, 255, 0.018);
}

.portal-auth-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: 360px;
  height: 360px;
  left: -225px;
  bottom: -120px;
}

.orbit-two {
  width: 180px;
  height: 180px;
  left: -90px;
  bottom: -30px;
}

.portal-auth-copy,
.portal-journey-card {
  width: min(100%, 710px);
  position: relative;
  z-index: 2;
}

.portal-kicker {
  margin: 0 0 18px;
  color: #9ec3ff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 2.2px;
}

.portal-auth-copy h1 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(48px, 5.3vw, 80px);
  line-height: 0.98;
  letter-spacing: -4.4px;
}

.portal-auth-copy h1 span {
  color: #78a9ff;
  font-weight: 500;
}

.portal-auth-copy > p:not(.portal-kicker) {
  max-width: 590px;
  margin: 28px 0 0;
  color: #c4d2e7;
  font-size: 18px;
  line-height: 1.7;
}

.portal-auth-benefits {
  max-width: 680px;
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.portal-auth-benefits article {
  min-height: 155px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  /* Contenuto ancorato in alto: quando la riga della griglia viene stirata
     all'altezza della card Rewards (piu' alta per la CTA), lo spazio extra va
     in fondo in modo uniforme e non spinge il testo al centro (fix card sfasata). */
  justify-content: flex-start;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(9px);
}

.portal-auth-benefits article.is-future {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(95, 142, 225, 0.12));
}

.portal-auth-benefits article.is-rewards {
  border-color: rgba(255, 177, 128, 0.26);
  background: linear-gradient(145deg, rgba(232, 85, 25, 0.16), rgba(255, 255, 255, 0.065));
}

/* La CTA della card Rewards resta ancorata in fondo (le altre card ora sono
   flex-start): margin-top auto spinge solo il bottone verso il basso. */
.portal-auth-benefits article.is-rewards .portal-rewards-open {
  margin-top: auto;
}

.portal-benefit-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.portal-auth-benefits i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #a9c9ff;
  background: rgba(72, 134, 244, 0.18);
  font-style: normal;
}

.portal-auth-benefits .is-rewards i {
  color: #ffd1b8;
  background: rgba(232, 85, 25, 0.22);
}

.portal-feature-status {
  min-height: 24px;
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: #b9cbed;
  background: rgba(2, 15, 38, 0.32);
  font-size: 7px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.85px;
  white-space: nowrap;
}

.portal-feature-status.is-active {
  color: #9ee8d6;
  border-color: rgba(89, 216, 185, 0.25);
  background: rgba(8, 123, 100, 0.21);
}

.portal-auth-benefits svg {
  width: 23px;
  height: 23px;
}

.portal-auth-benefits article span {
  display: grid;
  gap: 5px;
}

.portal-auth-benefits strong {
  color: white;
  font-size: 14px;
}

.portal-auth-benefits small {
  color: #acbdd5;
  font-size: 11px;
  line-height: 1.45;
}

.portal-aftercare-preview {
  max-width: 680px;
  margin-top: 14px;
  padding: 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 174, 124, 0.25);
  border-radius: 17px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 120, 54, 0.2), transparent 38%),
    rgba(2, 17, 42, 0.43);
}

.portal-aftercare-preview::after {
  content: "";
  width: 110px;
  height: 110px;
  position: absolute;
  right: -70px;
  bottom: -75px;
  border: 20px solid rgba(255, 255, 255, 0.045);
  border-radius: 50%;
}

.portal-aftercare-preview header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-aftercare-preview header > i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 13px;
  color: #ffd0b6;
  background: linear-gradient(145deg, rgba(232, 85, 25, 0.78), rgba(255, 123, 58, 0.38));
  box-shadow: 0 12px 27px rgba(92, 25, 0, 0.22);
  font-style: normal;
}

.portal-aftercare-preview header svg {
  width: 23px;
  height: 23px;
}

.portal-aftercare-preview header span {
  display: grid;
  gap: 2px;
}

.portal-aftercare-preview header small {
  color: #ffbd99;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 1.1px;
}

.portal-aftercare-preview header strong {
  color: #fff;
  font-size: 17px;
  letter-spacing: -0.4px;
}

.portal-aftercare-preview > p {
  max-width: 590px;
  margin: 12px 0 14px;
  color: #b8c8de;
  font-size: 11px;
  line-height: 1.55;
}

.portal-aftercare-preview > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  position: relative;
  z-index: 1;
}

.portal-aftercare-preview > div span {
  min-height: 31px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  color: #e7eef9;
  background: rgba(255, 255, 255, 0.065);
  font-size: 9px;
  font-weight: 750;
}

.portal-aftercare-preview > div svg {
  width: 14px;
  height: 14px;
  color: #8fb9ff;
}

.portal-private-note {
  max-width: 680px;
  margin-top: 14px;
  padding: 14px 17px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(111, 214, 185, 0.24);
  border-radius: 15px;
  background: rgba(3, 27, 55, 0.47);
}

.portal-private-note > i {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  flex: 0 0 39px;
  border-radius: 12px;
  color: #7ce0c8;
  background: rgba(8, 123, 100, 0.24);
  font-style: normal;
}

.portal-private-note svg {
  width: 22px;
  height: 22px;
}

.portal-private-note span {
  display: grid;
  gap: 2px;
}

.portal-private-note strong {
  color: #fff;
  font-size: 12px;
}

.portal-private-note small {
  color: #aabdd5;
  font-size: 10px;
}

.portal-journey-card {
  margin-top: 42px;
  padding: 17px 21px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  background: rgba(2, 14, 34, 0.34);
}

.portal-journey-card span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #dbe7f7;
  font-size: 12px;
  font-weight: 700;
}

.portal-journey-card b {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid #6f9ee8;
  border-radius: 50%;
  color: #b9d2fb;
  font-size: 10px;
}

.portal-journey-card i {
  height: 1px;
  flex: 1;
  margin-inline: 12px;
  background: rgba(255, 255, 255, 0.18);
}

.portal-auth-panel {
  min-height: 760px;
  padding: 55px clamp(32px, 5.5vw, 88px) 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 110% 10%, rgba(21, 93, 215, 0.09), transparent 30%),
    #fff;
}

.portal-auth-card {
  width: min(100%, 520px);
  margin-inline: auto;
}

.portal-preview-badge {
  width: max-content;
  margin-bottom: 23px;
  padding: 7px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cbdcf6;
  border-radius: 999px;
  color: #37639d;
  background: #f2f7ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.portal-preview-badge span,
.portal-top-status i,
.portal-heading-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--portal-green);
  box-shadow: 0 0 0 4px rgba(8, 123, 100, 0.12);
}

.portal-auth-heading p,
.portal-view-heading p,
.portal-form-card small,
.portal-document-summary small,
.portal-empty-state p,
.portal-coming-state p,
.portal-support-grid p {
  margin: 0;
  color: var(--portal-blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1.65px;
}

.portal-auth-heading h2 {
  margin: 6px 0 4px;
  color: var(--portal-navy);
  font-size: clamp(36px, 4vw, 50px);
  line-height: 1;
  letter-spacing: -2.4px;
}

.portal-auth-heading > span {
  color: var(--portal-muted);
  font-size: 14px;
}

.portal-pending-intent {
  margin-top: 18px;
  padding: 14px 15px;
  display: grid;
  gap: 4px;
  border: 1px solid #c8d9ef;
  border-radius: 15px;
  background:
    radial-gradient(circle at 92% 10%, rgba(24, 104, 230, 0.14), transparent 36%),
    linear-gradient(135deg, #f8fbff, #edf4ff);
  box-shadow: 0 12px 28px rgba(10, 47, 96, 0.08);
}

.portal-pending-intent small {
  color: var(--portal-blue);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.55px;
}

.portal-pending-intent strong {
  overflow-wrap: anywhere;
  color: var(--portal-navy);
  font-family: "Sora", "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.3;
}

.portal-pending-intent span {
  color: #52637b;
  font-size: 11px;
  font-weight: 750;
}

.portal-auth-tabs {
  margin-top: 30px;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--portal-line);
  border-radius: 12px;
  background: #f2f5f9;
}

.portal-auth-tabs button {
  min-height: 45px;
  border: 0;
  border-radius: 9px;
  color: #65748a;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.portal-auth-tabs button.is-active {
  color: var(--portal-navy);
  background: white;
  box-shadow: 0 6px 16px rgba(14, 42, 81, 0.09);
}

.portal-auth-form {
  margin-top: 25px;
  display: none;
  gap: 17px;
}

.portal-auth-form.is-active {
  display: grid;
}

.portal-email-otp[hidden] {
  display: none;
}

.portal-email-otp-heading {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid #c9ddf7;
  border-radius: 15px;
  background: linear-gradient(145deg, #eef5ff, #fbfdff);
}

.portal-email-otp-heading > span {
  color: #0b5cd6;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.portal-email-otp-heading h3,
.portal-email-otp-heading p {
  margin: 0;
}

.portal-email-otp-heading h3 {
  color: var(--portal-navy);
  font-size: 22px;
}

.portal-email-otp-heading p {
  color: #5b6d85;
  font-size: 12px;
  line-height: 1.55;
}

.portal-email-otp-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.portal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.portal-account-type {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.portal-account-type > legend {
  margin-bottom: 9px;
  color: #3d4f69;
  font-size: 11px;
  font-weight: 800;
}

.portal-account-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.portal-account-type-grid label {
  min-width: 0;
  cursor: pointer;
}

.portal-account-type-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.portal-account-type-grid span {
  min-height: 72px;
  padding: 11px 12px;
  display: grid;
  align-content: center;
  gap: 3px;
  border: 1px solid #d5e0ed;
  border-radius: 12px;
  color: #455a77;
  background: #f8faff;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.portal-account-type-grid b {
  color: #17345d;
  font-size: 12px;
}

.portal-account-type-grid small {
  color: #738298;
  font-size: 9px;
  line-height: 1.35;
}

.portal-account-type-grid input:checked + span {
  border-color: #1764db;
  color: #0b4fb3;
  background: linear-gradient(145deg, #eaf3ff, #f8fbff);
  box-shadow: inset 0 0 0 1px #1764db, 0 10px 22px rgba(21, 93, 215, 0.12);
}

.portal-account-type-grid input:focus-visible + span {
  outline: 3px solid rgba(21, 93, 215, 0.2);
  outline-offset: 2px;
}

.portal-business-profile {
  padding: 15px;
  display: grid;
  gap: 13px;
  border: 1px solid #cfe0f5;
  border-radius: 14px;
  background: linear-gradient(145deg, #eef5ff, #fbfdff);
}

.portal-business-profile[hidden] {
  display: none;
}

.portal-business-profile-head {
  display: grid;
  gap: 3px;
}

.portal-business-profile-head > span {
  color: #0b5cd6;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1px;
}

.portal-business-profile-head strong {
  color: #17345d;
  font-size: 15px;
}

.portal-business-profile-head small {
  color: #667991;
  font-size: 10px;
  line-height: 1.45;
}

.portal-marketing-check {
  min-height: 24px;
  padding-inline: 12px;
}

.portal-field {
  display: grid;
  gap: 7px;
}

.portal-field > span:first-child {
  color: #3d4f69;
  font-size: 11px;
  font-weight: 800;
}

.portal-input-wrap {
  min-height: 50px;
  display: flex;
  align-items: center;
  position: relative;
  border: 1px solid #cfdae8;
  border-radius: 11px;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.portal-input-wrap:focus-within {
  border-color: #6a9be9;
  box-shadow: 0 0 0 4px rgba(21, 93, 215, 0.09);
}

.portal-input-wrap > svg {
  width: 18px;
  height: 18px;
  margin-left: 14px;
  flex: 0 0 auto;
  color: #8391a5;
}

.portal-input-wrap input,
.portal-input-wrap select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border: 0;
  outline: 0;
  color: var(--portal-text);
  background: transparent;
  font-size: 13px;
}

.portal-input-wrap > svg + input {
  padding-left: 10px;
}

.portal-input-wrap input::placeholder {
  color: #98a4b5;
}

.portal-password-toggle {
  width: 42px;
  height: 42px;
  margin-right: 3px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  color: #77869b;
  background: transparent;
}

.portal-password-toggle svg {
  width: 19px;
  height: 19px;
}

.portal-password-policy {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -4px 0 4px;
  padding: 0;
  list-style: none;
}

.portal-password-policy li {
  padding: 6px 9px;
  border: 1px solid #d8e4f2;
  border-radius: 999px;
  background: #f5f8fc;
  color: #65758c;
  font-size: 11px;
  font-weight: 750;
  transition: .2s ease;
}

.portal-password-policy li.is-valid {
  border-color: rgba(9, 153, 112, .24);
  background: #eaf8f3;
  color: #08795d;
}

.portal-form-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.portal-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #65748a;
  font-size: 11px;
  line-height: 1.45;
}

.portal-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--portal-blue);
}

.portal-text-button {
  padding: 0;
  border: 0;
  color: var(--portal-blue);
  background: transparent;
  font-size: 11px;
  font-weight: 750;
}

.portal-primary-action,
.portal-secondary-action,
.portal-inline-primary {
  min-height: 51px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.portal-primary-action,
.portal-inline-primary {
  color: white;
  background: linear-gradient(135deg, #155dd7, #0e489f);
  box-shadow: 0 12px 25px rgba(21, 93, 215, 0.2);
}

.portal-auth-form > .portal-primary-action {
  width: 100%;
}

.portal-primary-action:hover,
.portal-inline-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(21, 93, 215, 0.28);
}

.portal-primary-action svg,
.portal-inline-primary svg {
  width: 18px;
  height: 18px;
}

.portal-secondary-action {
  color: #3f526e;
  border: 1px solid #cdd9e7;
  background: white;
}

.portal-secondary-action:hover {
  color: var(--portal-blue);
  border-color: #8bade4;
  background: #f8fbff;
}

.portal-privacy-check {
  padding: 12px;
  border: 1px solid #d9e3ef;
  border-radius: 10px;
  background: #f7f9fc;
}

.portal-auth-message {
  min-height: 0;
  margin-top: 13px;
  padding: 0;
  display: none;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.5;
}

.portal-auth-message.is-visible {
  padding: 11px 13px;
  display: block;
  color: #28517d;
  border: 1px solid #c7daf1;
  background: #f0f6fe;
}

.portal-auth-message.is-error {
  color: #8b371c;
  border-color: #f0c8b9;
  background: #fff4ef;
}

.portal-demo-divider {
  margin: 23px 0 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8b98a9;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 1.4px;
}

.portal-demo-divider::before,
.portal-demo-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e0e6ee;
}

.portal-demo-button {
  width: 100%;
  min-height: 65px;
  padding: 9px 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 1px solid #cbd9ea;
  border-radius: 12px;
  color: var(--portal-text);
  background: white;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.portal-demo-button:hover {
  border-color: #79a4e7;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(9, 43, 93, 0.1);
}

.portal-demo-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--portal-blue);
  background: #edf4ff;
}

.portal-demo-icon svg {
  width: 23px;
  height: 23px;
}

.portal-demo-button > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.portal-demo-button strong {
  font-size: 12px;
}

.portal-demo-button small {
  color: #7c899b;
  font-size: 10px;
}

.portal-demo-button > svg {
  width: 18px;
  height: 18px;
  color: var(--portal-blue);
}

.portal-auth-help {
  margin: 25px auto 0;
  color: #7a8799;
  font-size: 11px;
  text-align: center;
}

.portal-auth-help a {
  color: var(--portal-blue);
  font-weight: 800;
}

.portal-company-data {
  max-width: 780px;
  margin: 14px auto 0;
  padding: 13px 17px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  border: 1px solid #dce7f5;
  border-radius: 12px;
  color: #74849a;
  background: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  line-height: 1.55;
  text-align: center;
}

.portal-company-data strong {
  color: #112746;
}

.portal-company-legal,
.portal-sidebar-legal {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.portal-company-legal {
  flex: 1 0 100%;
  justify-content: center;
}

.portal-company-legal a,
.portal-company-legal button {
  border: 0;
  padding: 0;
  color: var(--portal-blue);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.portal-sidebar-legal a {
  color: #a9c7f5;
  font-weight: 800;
}

.portal-company-legal a:hover,
.portal-company-legal button:hover,
.portal-sidebar-legal a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* App privata */
.portal-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  background: #f3f6fa;
}

.portal-app[hidden] {
  display: none;
}

.portal-sidebar {
  height: 100vh;
  padding: 26px 19px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  z-index: 100;
  color: #d7e4f8;
  background:
    radial-gradient(circle at 20% 92%, rgba(21, 93, 215, 0.24), transparent 31%),
    linear-gradient(178deg, #06172f, #071e43 68%, #08275a);
}

.portal-sidebar-head {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-sidebar-head a {
  width: 142px;
}

.portal-sidebar-head img {
  width: 100%;
  height: auto;
}

.portal-sidebar-close {
  display: none;
  border: 0;
  color: white;
  background: transparent;
  font-size: 26px;
}

.portal-user-card {
  margin: 24px 0 21px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.portal-user-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  color: white;
  background: linear-gradient(135deg, #2a73e9, #114798);
  font-size: 11px;
  font-weight: 850;
}

.portal-user-card > span:last-child {
  min-width: 0;
  display: grid;
}

.portal-user-card strong {
  overflow: hidden;
  color: white;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-user-card small {
  color: #8fa5c5;
  font-size: 9px;
}

.portal-side-nav {
  display: grid;
  gap: 4px;
}

.portal-side-nav button {
  width: 100%;
  min-height: 46px;
  padding: 9px 11px;
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  color: #aabbd3;
  background: transparent;
  font-size: 11px;
  font-weight: 750;
  text-align: left;
}

.portal-side-nav button:hover,
.portal-side-nav button.is-active {
  color: white;
  background: rgba(39, 102, 210, 0.21);
}

.portal-side-nav button.is-active {
  box-shadow: inset 3px 0 #4b8df5;
}

.portal-side-nav svg {
  width: 19px;
  height: 19px;
}

.portal-side-nav b,
.portal-side-nav em {
  padding: 3px 6px;
  border-radius: 999px;
  color: #a9c7f5;
  background: rgba(58, 126, 235, 0.18);
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.portal-sidebar-security {
  margin-top: auto;
  padding: 13px;
  display: flex;
  gap: 10px;
  border: 1px solid rgba(112, 169, 255, 0.13);
  border-radius: 11px;
  background: rgba(31, 92, 182, 0.11);
}

.portal-sidebar-security svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  color: #80aff7;
}

.portal-sidebar-security span {
  display: grid;
  gap: 3px;
}

.portal-sidebar-security strong {
  color: white;
  font-size: 10px;
}

.portal-sidebar-security small {
  color: #8fa5c5;
  font-size: 8px;
  line-height: 1.45;
}

.portal-sidebar-company {
  margin-top: 9px;
  padding: 0 4px;
  display: grid;
  gap: 2px;
  color: #8399ba;
  font-size: 8px;
  line-height: 1.45;
}

.portal-sidebar-company strong {
  color: #dbe7f8;
  font-size: 8.5px;
}

.portal-logout {
  margin-top: 10px;
  min-height: 40px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 9px;
  color: #94a9c6;
  background: transparent;
  font-size: 10px;
  font-weight: 750;
}

.portal-logout:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.portal-logout svg {
  width: 18px;
  height: 18px;
}

.portal-sidebar-overlay {
  display: none;
}

.portal-workspace {
  min-width: 0;
}

.portal-topbar {
  height: 78px;
  padding: 0 clamp(22px, 3vw, 44px);
  display: flex;
  align-items: center;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid #dce4ee;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.portal-sidebar-toggle {
  width: 40px;
  height: 40px;
  display: none;
  place-content: center;
  gap: 4px;
  border: 1px solid #d4deeb;
  border-radius: 10px;
  background: white;
}

.portal-sidebar-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: var(--portal-text);
}

.portal-topbar > div:nth-child(2) {
  display: grid;
  line-height: 1.2;
}

.portal-topbar > div:nth-child(2) small {
  color: #7b8aa0;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 1.4px;
}

.portal-topbar > div:nth-child(2) strong {
  color: var(--portal-navy);
  font-size: 18px;
  letter-spacing: -0.4px;
}

.portal-top-status {
  margin-left: auto;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d4e0ef;
  border-radius: 999px;
  color: #61748e;
  background: #f7f9fc;
  font-size: 9px;
  font-weight: 750;
}

.portal-advisor-button {
  min-height: 45px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #c8d8ed;
  border-radius: 11px;
  color: #244b80;
  background: white;
}

.portal-advisor-button > svg {
  width: 22px;
  height: 22px;
  color: var(--portal-blue);
}

.portal-advisor-button span {
  display: grid;
  line-height: 1.2;
}

.portal-advisor-button small {
  color: #7d8ca1;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.8px;
}

.portal-advisor-button strong {
  font-size: 10px;
}

.portal-content-area {
  width: min(calc(100% - 44px), 1240px);
  margin-inline: auto;
  padding: 38px 0 70px;
}

.portal-view {
  display: none;
}

.portal-view.is-active {
  display: block;
  animation: portal-fade 0.28s ease both;
}

@keyframes portal-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.portal-welcome-card {
  min-height: 270px;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  color: white;
  background:
    radial-gradient(circle at 84% 14%, rgba(77, 141, 245, 0.55), transparent 33%),
    linear-gradient(130deg, #071a36, #0a3c8d);
  box-shadow: 0 23px 55px rgba(7, 35, 79, 0.18);
}

.portal-welcome-card::after {
  content: "";
  width: 310px;
  height: 310px;
  position: absolute;
  right: -110px;
  top: -150px;
  border: 38px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.portal-welcome-card > div:first-child {
  max-width: 660px;
  position: relative;
  z-index: 2;
}

.portal-welcome-card p {
  margin: 0 0 8px;
  color: #9fc2fb;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1.7px;
}

.portal-welcome-card h2 {
  margin: 0 0 9px;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1;
  letter-spacing: -2.5px;
}

.portal-welcome-card h2 span {
  color: #9ec3ff;
  font-weight: 500;
}

.portal-welcome-card > div:first-child > span {
  max-width: 600px;
  display: block;
  color: #c3d1e5;
  font-size: 14px;
  line-height: 1.65;
}

.portal-welcome-card button {
  margin-top: 23px;
  min-height: 45px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 10px;
  color: #092049;
  background: white;
  font-size: 11px;
  font-weight: 800;
}

.portal-welcome-card button svg {
  width: 17px;
  height: 17px;
}

.portal-progress-orbit {
  width: 158px;
  height: 158px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

.portal-progress-orbit > svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.portal-progress-orbit circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.13);
  stroke-width: 8;
}

.portal-progress-orbit .portal-progress-value {
  stroke: #80adfa;
  stroke-dasharray: 314;
  stroke-dashoffset: 267;
  transition: stroke-dashoffset 0.4s ease;
}

.portal-progress-orbit > span {
  display: grid;
  position: absolute;
  text-align: center;
}

.portal-progress-orbit strong {
  font-size: 28px;
  line-height: 1;
}

.portal-progress-orbit small {
  margin-top: 4px;
  color: #aebfda;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.portal-summary-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.portal-summary-grid article {
  min-height: 118px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--portal-line);
  border-radius: 15px;
  background: white;
  box-shadow: 0 10px 30px rgba(11, 39, 76, 0.045);
}

.portal-summary-grid i {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  font-style: normal;
}

.portal-summary-grid i.blue { color: var(--portal-blue); background: #edf4ff; }
.portal-summary-grid i.orange { color: var(--portal-orange); background: #fff2ec; }
.portal-summary-grid i.green { color: var(--portal-green); background: #ebf8f4; }
.portal-summary-grid svg { width: 23px; height: 23px; }

.portal-summary-grid article > span {
  min-width: 0;
  display: grid;
}

.portal-summary-grid small {
  color: #8996a8;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 1px;
}

.portal-summary-grid strong {
  overflow: hidden;
  margin-top: 2px;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-summary-grid button {
  width: max-content;
  margin-top: 5px;
  padding: 0;
  border: 0;
  color: var(--portal-blue);
  background: transparent;
  font-size: 9px;
  font-weight: 800;
}

.portal-overview-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.65fr);
  gap: 18px;
}

.portal-next-step,
.portal-advisor-card,
.portal-form-card,
.portal-upload-guide,
.portal-empty-state,
.portal-coming-state,
.portal-support-grid article {
  border: 1px solid var(--portal-line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 15px 42px rgba(12, 42, 80, 0.055);
}

.portal-next-step {
  padding: 27px;
}

.portal-next-step header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
}

.portal-next-step header span {
  display: grid;
}

.portal-next-step header small {
  color: var(--portal-blue);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 1.4px;
}

.portal-next-step h3,
.portal-advisor-card h3,
.portal-form-card h3,
.portal-document-summary h3,
.portal-upload-guide h3,
.portal-empty-state h3,
.portal-coming-state h3,
.portal-support-grid h3 {
  margin: 4px 0 0;
  color: var(--portal-navy);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.8px;
}

.portal-next-step header b {
  color: #dde7f4;
  font-size: 34px;
  line-height: 1;
}

.portal-next-step > p {
  max-width: 720px;
  margin: 15px 0 20px;
  color: var(--portal-muted);
  font-size: 12px;
  line-height: 1.6;
}

.portal-mini-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.portal-mini-steps span {
  min-height: 42px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dce5ef;
  border-radius: 10px;
  color: #718097;
  background: #f8fafc;
  font-size: 9px;
  font-weight: 750;
}

.portal-mini-steps i {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 1px solid #cdd8e6;
  border-radius: 50%;
  font-size: 8px;
  font-style: normal;
}

.portal-mini-steps .is-done { color: var(--portal-green); border-color: #bdded4; background: #f1faf7; }
.portal-mini-steps .is-done i { color: white; border-color: var(--portal-green); background: var(--portal-green); }
.portal-mini-steps .is-current { color: var(--portal-blue); border-color: #b8cff2; background: #f1f6ff; }
.portal-mini-steps .is-current i { color: white; border-color: var(--portal-blue); background: var(--portal-blue); }

.portal-inline-primary {
  min-height: 43px;
  margin-top: 20px;
  padding-inline: 16px;
  font-size: 10px;
}

.portal-advisor-card {
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.portal-advisor-card::after {
  content: "";
  width: 150px;
  height: 150px;
  position: absolute;
  right: -80px;
  top: -80px;
  border: 20px solid #f2f6fd;
  border-radius: 50%;
}

.portal-advisor-art {
  height: 72px;
  position: relative;
}

.portal-advisor-art span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
  border: 4px solid white;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, #155dd7, #0a377e);
  box-shadow: 0 10px 22px rgba(13, 68, 151, 0.18);
  font-size: 12px;
  font-weight: 850;
}

.portal-advisor-art i {
  width: 17px;
  height: 17px;
  position: absolute;
  left: 47px;
  top: 40px;
  z-index: 3;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--portal-green);
}

.portal-advisor-card p {
  margin: 5px 0 0;
  color: var(--portal-blue);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 1.4px;
}

.portal-advisor-card h3 {
  font-size: 20px;
}

.portal-advisor-card > span {
  margin-top: 11px;
  display: block;
  color: var(--portal-muted);
  font-size: 11px;
  line-height: 1.55;
}

.portal-advisor-card a {
  margin-top: 19px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--portal-blue);
  font-size: 10px;
  font-weight: 800;
}

.portal-view-heading {
  margin-bottom: 26px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.portal-view-heading h2 {
  margin: 5px 0 5px;
  color: var(--portal-navy);
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -2.5px;
}

.portal-view-heading > div > span {
  color: var(--portal-muted);
  font-size: 13px;
}

.portal-heading-chip {
  padding: 8px 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cdddeb;
  border-radius: 999px;
  color: #60738b;
  background: white;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}

.portal-heading-chip.is-warning i {
  background: var(--portal-orange);
  box-shadow: 0 0 0 4px rgba(232, 85, 25, 0.12);
}

.portal-form-card {
  margin-bottom: 18px;
  padding: clamp(23px, 3vw, 34px);
}

.portal-card-title {
  display: flex;
  align-items: center;
  gap: 13px;
}

.portal-card-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: white;
  background: var(--portal-navy);
  font-size: 12px;
  font-weight: 850;
}

.portal-card-title > span:last-child {
  display: grid;
}

.portal-form-card h3 {
  font-size: 21px;
}

.portal-category-grid {
  margin-top: 23px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.portal-category-card {
  min-height: 158px;
  padding: 19px;
  display: grid;
  align-content: start;
  gap: 7px;
  position: relative;
  border: 1px solid #d7e1ed;
  border-radius: 15px;
  color: var(--portal-text);
  background: #fbfcfe;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.portal-category-card:hover {
  transform: translateY(-3px);
  border-color: #9bb9e8;
  box-shadow: 0 15px 30px rgba(17, 61, 121, 0.09);
}

.portal-category-card.is-selected {
  border-color: var(--portal-blue);
  background: #f3f7ff;
  box-shadow: inset 0 0 0 1px var(--portal-blue), 0 15px 32px rgba(21, 93, 215, 0.09);
}

.portal-category-card > i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 5px;
  border-radius: 12px;
  color: var(--portal-blue);
  background: #eaf2ff;
  font-style: normal;
}

.portal-category-card > i svg { width: 23px; height: 23px; }
.portal-category-card strong { font-size: 15px; }
.portal-category-card small { color: var(--portal-muted); font-size: 10px; line-height: 1.5; }

.portal-category-check {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  position: absolute;
  right: 13px;
  top: 13px;
  border: 1px solid #c9d5e4;
  border-radius: 50%;
  color: transparent;
  background: white;
  font-size: 10px;
}

.portal-category-card.is-selected .portal-category-check {
  color: white;
  border-color: var(--portal-blue);
  background: var(--portal-blue);
}

.portal-profile-form {
  margin-top: 24px;
}

.portal-profile-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.portal-profile-fields .portal-field.is-full {
  grid-column: 1 / -1;
}

.portal-birth-picker {
  min-height: 50px;
  display: grid;
  grid-template-columns: minmax(82px, 0.8fr) minmax(120px, 1.25fr) minmax(94px, 0.9fr);
  gap: 8px;
}

.portal-birth-picker select {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid #cfdae8;
  border-radius: 11px;
  outline: 0;
  color: var(--portal-text);
  background: #fff;
  font: inherit;
  font-size: 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.portal-birth-picker select:focus {
  border-color: #6a9be9;
  box-shadow: 0 0 0 4px rgba(21, 93, 215, 0.09);
}

.portal-birth-field > small {
  color: #718198;
  font-size: 10px;
  line-height: 1.45;
}

.portal-form-consent {
  margin-top: 22px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #cbe3da;
  border-radius: 12px;
  color: #315f55;
  background: #f2faf7;
}

.portal-form-consent svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: var(--portal-green);
}

.portal-form-consent span {
  display: grid;
}

.portal-form-consent strong { font-size: 11px; }
.portal-form-consent small { color: #5f827a; font-size: 9px; letter-spacing: 0; }

.portal-form-actions,
.portal-upload-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.portal-document-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 18px;
}

.portal-document-summary {
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid #c9d9ef;
  border-radius: 16px;
  background: linear-gradient(135deg, #f5f9ff, #fff);
}

.portal-document-summary-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--portal-blue);
  background: #e7f0ff;
}

.portal-document-summary-icon svg { width: 26px; height: 26px; }
.portal-document-summary > span:nth-child(2) { display: grid; }
.portal-document-summary h3 { font-size: 18px; }
.portal-document-summary p { margin: 4px 0 0; color: var(--portal-muted); font-size: 12px; line-height: 1.5; }

.portal-document-summary button {
  padding: 7px 10px;
  border: 1px solid #c8d7e9;
  border-radius: 8px;
  color: #42618a;
  background: white;
  font-size: 11px;
  font-weight: 750;
}

.portal-document-list {
  margin-top: 13px;
  display: grid;
  gap: 10px;
}

.portal-document-group-title {
  margin: 24px 0 2px;
  padding: 18px 19px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border: 1px dashed #c5d5e8;
  border-radius: 13px;
  background: #f8fafc;
}

.portal-document-group-title > span {
  display: grid;
  gap: 2px;
}

.portal-document-group-title small {
  color: var(--portal-orange);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1.3px;
}

.portal-document-group-title strong {
  color: var(--portal-navy);
  font-size: 15px;
}

.portal-document-group-title p {
  max-width: 520px;
  margin: 0;
  color: var(--portal-muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: right;
}

.portal-document-row {
  min-height: 113px;
  padding: 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--portal-line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 8px 25px rgba(11, 41, 80, 0.035);
}

.portal-document-row.has-file {
  border-color: #aad5c8;
  background: #fbfffd;
}

.portal-doc-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #58708e;
  background: #f0f4f8;
}

.portal-document-row.has-file .portal-doc-icon {
  color: var(--portal-green);
  background: #eaf8f3;
}

.portal-doc-icon svg { width: 23px; height: 23px; }

.portal-doc-copy {
  min-width: 0;
  display: grid;
}

.portal-doc-copy > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.portal-doc-copy strong { font-size: 15px; }

.portal-doc-copy b {
  padding: 3px 6px;
  border-radius: 999px;
  color: #3c6392;
  background: #edf4fd;
  font-size: 9px;
  letter-spacing: 0.6px;
}

.portal-doc-copy b.optional { color: #718096; background: #f0f2f5; }
.portal-doc-copy b.validity { color: #9a481f; background: #fff1ea; }
.portal-doc-copy > small { margin-top: 5px; color: var(--portal-muted); font-size: 11px; line-height: 1.55; }

.portal-file-name {
  max-width: 100%;
  margin-top: 8px;
  display: none;
  align-items: center;
  gap: 6px;
  color: var(--portal-green);
  font-size: 11px;
  font-weight: 750;
}

.portal-document-row.has-file .portal-file-name { display: flex; }
.portal-file-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.portal-upload-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.portal-upload-label {
  min-height: 39px;
  padding: 8px 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #b9cce6;
  border-radius: 9px;
  color: #315d98;
  background: #f8fbff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.portal-upload-label:hover { border-color: var(--portal-blue); background: #eef5ff; }
.portal-upload-label svg { width: 16px; height: 16px; }
.portal-upload-label input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.portal-file-remove {
  width: 37px;
  height: 37px;
  display: none;
  place-items: center;
  border: 1px solid #e5c9c0;
  border-radius: 9px;
  color: #a64b2b;
  background: #fff8f5;
}

.portal-document-row.has-file .portal-file-remove { display: grid; }
.portal-file-remove svg { width: 16px; height: 16px; }

.portal-upload-guide {
  padding: 25px;
  position: sticky;
  top: 96px;
}

.portal-upload-guide > p {
  margin: 0;
  color: var(--portal-orange);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1.5px;
}

.portal-upload-guide h3 { font-size: 22px; }

.portal-upload-guide ul {
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
  list-style: none;
}

.portal-upload-guide li {
  display: flex;
  gap: 11px;
}

.portal-upload-guide li > i {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--portal-blue);
  background: #edf4ff;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.portal-upload-guide li span { display: grid; gap: 3px; }
.portal-upload-guide li strong { font-size: 13px; }
.portal-upload-guide li small { color: var(--portal-muted); font-size: 11px; line-height: 1.5; }

.portal-guide-security {
  margin-top: 25px;
  padding: 13px;
  display: flex;
  gap: 10px;
  border: 1px solid #c8e2d9;
  border-radius: 11px;
  color: #2e6357;
  background: #f1faf7;
}

.portal-guide-security svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--portal-green); }
.portal-guide-security span { display: grid; gap: 3px; }
.portal-guide-security strong { font-size: 12px; }
.portal-guide-security small { color: #5d7f77; font-size: 10px; line-height: 1.5; }

.portal-empty-state {
  min-height: 440px;
  padding: 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.portal-empty-state > span,
.portal-coming-state > span {
  width: 75px;
  height: 75px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 20px;
  color: var(--portal-blue);
  background: #eaf2ff;
}

.portal-empty-state > span svg,
.portal-coming-state > span svg { width: 38px; height: 38px; }
.portal-empty-state h3 { max-width: 600px; margin-top: 6px; font-size: 30px; }
.portal-empty-state > small { max-width: 560px; margin-top: 10px; color: var(--portal-muted); font-size: 12px; line-height: 1.6; }
.portal-empty-state a { margin-top: 24px; padding: 12px 17px; border-radius: 10px; color: white; background: var(--portal-blue); font-size: 11px; font-weight: 800; }

.portal-customer-request-list,
.portal-concierge-list {
  display: grid;
  gap: 14px;
}

.portal-favorites-section { margin-bottom: 30px; }
.portal-section-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  color: var(--portal-blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
}
.portal-section-label b {
  min-width: 22px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #fff;
  background: var(--portal-blue);
  text-align: center;
}
.portal-favorite-empty {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 1px dashed rgba(22, 91, 211, 0.25);
  border-radius: 18px;
  background: #fff;
}
.portal-favorite-empty > span { color: var(--portal-blue); font-size: 34px; line-height: 1; }
.portal-favorite-empty > div { min-width: 0; display: grid; gap: 3px; }
.portal-favorite-empty strong { color: var(--portal-navy); font-size: 15px; }
.portal-favorite-empty small { color: var(--portal-muted); }
.portal-favorite-empty a,
.portal-favorite-item > a {
  margin-left: auto;
  color: var(--portal-blue);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}
.portal-favorite-item .portal-request-icon { font-size: 23px; }

.portal-customer-request {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(22, 91, 211, 0.14);
  border-radius: 20px;
  background: linear-gradient(135deg, #fff 0%, #f6f9ff 100%);
  box-shadow: 0 16px 34px rgba(8, 36, 78, 0.06);
}

.portal-request-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, #0e62d8, #12459c);
}

.portal-request-icon.is-match {
  background: linear-gradient(145deg, #ff6b2b, #d9480f);
}

.portal-request-icon svg { width: 27px; height: 27px; }
.portal-request-copy { min-width: 0; display: grid; gap: 3px; }
.portal-request-copy > small { color: var(--portal-blue); font-size: 10px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.portal-request-copy > strong { overflow-wrap: anywhere; color: var(--portal-navy); font-size: 17px; }
.portal-request-copy > em,
.portal-request-copy > small:last-child { color: var(--portal-muted); font-size: 10px; font-style: normal; }

.portal-request-score {
  min-width: 62px;
  display: grid;
  justify-items: center;
  color: #d84b14;
  font-size: 22px;
}

.portal-request-score small { font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; }

.portal-request-status {
  min-width: 116px;
  padding: 9px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  color: #31577f;
  background: #edf4fc;
  font-size: 10px;
  font-weight: 850;
  text-align: center;
}

.portal-request-status i { width: 7px; height: 7px; border-radius: 50%; background: #5f82aa; }
.portal-request-status.is-active,
.portal-request-status.is-progress { color: #095ab9; background: #e8f2ff; }
.portal-request-status.is-active i,
.portal-request-status.is-progress i { background: #1269d6; }
.portal-request-status.is-done { color: #16715c; background: #e7f7f1; }
.portal-request-status.is-done i { background: #1d9b76; }
.portal-request-status.is-muted { color: #6c7788; background: #f0f2f5; }

.portal-concierge-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.portal-concierge-hero {
  min-height: 330px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  position: relative;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(72, 146, 255, 0.34), transparent 34%),
    linear-gradient(145deg, #071c3d, #0e3e83);
  box-shadow: 0 24px 50px rgba(4, 30, 68, 0.16);
}

.portal-concierge-hero::after {
  content: "";
  width: 210px;
  height: 210px;
  position: absolute;
  right: -90px;
  bottom: -105px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255, 255, 255, 0.04), 0 0 0 84px rgba(255, 255, 255, 0.03);
}

.portal-concierge-hero > * { position: relative; z-index: 1; }
.portal-concierge-hero small { color: #91bcff; font-size: 10px; font-weight: 850; letter-spacing: 0.11em; }
.portal-concierge-hero h3 { margin-top: 8px; color: #fff; font-size: clamp(27px, 3vw, 38px); line-height: 1.02; }
.portal-concierge-hero p { max-width: 520px; margin-top: 14px; color: #c1d4ee; font-size: 12px; line-height: 1.65; }
.portal-concierge-hero .portal-primary-action { width: fit-content; background: linear-gradient(135deg, #ff6824, #d7470b); }

.portal-concierge-empty,
.portal-concierge-item {
  min-height: 150px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(22, 91, 211, 0.14);
  border-radius: 20px;
  background: #fff;
}

.portal-concierge-empty { min-height: 330px; justify-content: center; }
.portal-concierge-empty > span { width: 58px; height: 58px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 18px; color: var(--portal-blue); background: #eaf2ff; }
.portal-concierge-empty svg { width: 30px; height: 30px; }
.portal-concierge-empty div,
.portal-concierge-item > span { display: grid; gap: 6px; }
.portal-concierge-empty small,
.portal-concierge-item small { color: var(--portal-blue); font-size: 9px; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.portal-concierge-empty strong,
.portal-concierge-item strong { color: var(--portal-navy); font-size: 18px; }
.portal-concierge-empty p,
.portal-concierge-item p { color: var(--portal-muted); font-size: 11px; line-height: 1.55; }
.portal-concierge-item { justify-content: space-between; min-height: 0; }
.portal-concierge-item > b { padding: 10px 12px; border-radius: 10px; color: var(--portal-blue); background: #edf4ff; font-size: 11px; white-space: nowrap; }

.portal-coming-state {
  min-height: 260px;
  padding: 35px;
  display: flex;
  align-items: center;
  gap: 25px;
}

.portal-coming-state > span { margin: 0; flex: 0 0 auto; }
.portal-coming-state h3 { margin-top: 6px; font-size: 28px; }
.portal-coming-state small { max-width: 700px; margin-top: 9px; display: block; color: var(--portal-muted); font-size: 11px; line-height: 1.6; }

.portal-contract-list {
  display: grid;
  gap: 18px;
}

.portal-contract-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 24px 26px;
  border: 1px solid rgba(22, 91, 211, 0.14);
  border-radius: 22px;
  background: linear-gradient(135deg, #fff 0%, #f5f9ff 100%);
  box-shadow: 0 18px 38px rgba(9, 37, 82, 0.07);
}

.portal-contract-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, #0d4cac, #1a6be2);
}

.portal-contract-icon svg {
  width: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-contract-item > span:nth-child(2) {
  display: grid;
  gap: 5px;
}

.portal-contract-item small {
  color: #1260cc;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.portal-contract-item strong {
  color: #071b3a;
  font-size: 1.08rem;
}

.portal-contract-item em {
  color: #6a7890;
  font-size: 0.86rem;
  font-style: normal;
}

.portal-contract-item a {
  padding: 12px 17px;
  border-radius: 12px;
  color: #fff;
  background: #0e57be;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 720px) {
  .portal-contract-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .portal-contract-item a {
    grid-column: 1 / -1;
    text-align: center;
  }

  .portal-customer-request {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 18px;
  }

  .portal-favorite-item > a {
    margin-left: 0;
    grid-column: 1 / -1;
  }

  .portal-favorite-empty {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .portal-favorite-empty a {
    width: 100%;
    margin-left: 0;
  }

  .portal-request-score { grid-column: 1; }
  .portal-request-status { grid-column: 2; justify-self: start; }
  .portal-concierge-layout { grid-template-columns: 1fr; }
  .portal-concierge-hero { min-height: 300px; padding: 28px 22px; }
  .portal-concierge-empty { min-height: 240px; padding: 22px; align-items: flex-start; flex-direction: column; }
  .portal-concierge-item { align-items: flex-start; flex-direction: column; }
}

.portal-support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.portal-support-grid article { padding: 30px; }
.portal-support-grid i { width: 49px; height: 49px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 13px; color: var(--portal-blue); background: #eaf2ff; font-style: normal; }
.portal-support-grid i svg { width: 25px; height: 25px; }
.portal-support-grid h3 { font-size: 24px; }
.portal-support-grid article > span { margin-top: 9px; display: block; color: var(--portal-muted); font-size: 11px; }
.portal-support-grid a { margin-top: 20px; display: inline-block; color: var(--portal-blue); font-size: 10px; font-weight: 800; }

.portal-toast {
  max-width: min(390px, calc(100vw - 30px));
  padding: 14px 16px;
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 300;
  border: 1px solid #c7d8ec;
  border-radius: 12px;
  color: #244e80;
  background: white;
  box-shadow: 0 20px 50px rgba(8, 34, 72, 0.19);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.portal-toast.is-visible { opacity: 1; transform: translateY(0); }
.portal-toast.is-error { color: #8f361c; border-color: #efc8ba; background: #fff8f5; }

@media (max-width: 1100px) {
  .portal-auth-view { grid-template-columns: minmax(0, 1fr) minmax(450px, 0.88fr); }
  .portal-auth-visual { padding-inline: 45px; }
  .portal-auth-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-auth-benefits article { min-height: 150px; }
  .portal-summary-grid { grid-template-columns: 1fr 1fr; }
  .portal-summary-grid article:last-child { grid-column: 1 / -1; }
  .portal-document-layout { grid-template-columns: 1fr; }
  .portal-upload-guide { position: static; }
}

@media (max-width: 900px) {
  .portal-public-header { grid-template-columns: 1fr auto; }
  .portal-public-security { display: none; }
  .portal-auth-view { grid-template-columns: 1fr; }
  .portal-auth-visual { min-height: auto; padding-block: 70px; }
  .portal-auth-copy h1 { font-size: clamp(48px, 9vw, 70px); }
  .portal-auth-panel { min-height: auto; padding-block: 62px; }
  .portal-app { grid-template-columns: 1fr; }
  .portal-sidebar { width: min(310px, 88vw); position: fixed; left: 0; top: 0; transform: translateX(-105%); transition: transform 0.25s ease; }
  .portal-sidebar.is-open { transform: translateX(0); }
  .portal-sidebar-close { display: block; }
  .portal-sidebar-overlay { display: block; position: fixed; inset: 0; z-index: 90; background: rgba(2, 15, 35, 0.6); opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
  .portal-sidebar-overlay.is-visible { opacity: 1; pointer-events: auto; }
  .portal-sidebar-toggle { display: grid; }
  .portal-overview-grid { grid-template-columns: 1fr; }
  .portal-category-grid { grid-template-columns: 1fr; }
  .portal-category-card { min-height: 120px; }
}

@media (max-width: 660px) {
  .portal-birth-picker {
    grid-template-columns: 0.8fr 1.15fr 0.9fr;
    gap: 6px;
  }

  .portal-birth-picker select {
    padding-inline: 8px;
    font-size: 12px;
  }

  .portal-public-header { height: 66px; padding-inline: 16px; }
  .portal-public-brand { width: 122px; }
  .portal-back-link { font-size: 11px; }
  .portal-auth-view { min-height: calc(100vh - 66px); }
  .portal-auth-visual { padding: 55px 22px; }
  .portal-auth-copy h1 { font-size: 45px; letter-spacing: -2.6px; }
  .portal-auth-copy > p:not(.portal-kicker) { margin-top: 20px; font-size: 15px; }
  .portal-auth-benefits {
    max-width: none;
    margin-top: 30px;
    padding-bottom: 8px;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(245px, 84%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .portal-auth-benefits::-webkit-scrollbar { display: none; }
  .portal-auth-benefits article { min-height: 150px; padding: 15px; scroll-snap-align: start; }
  .portal-private-note { padding: 13px; }
  .portal-journey-card { margin-top: 28px; padding: 13px; }
  .portal-journey-card span { font-size: 9px; }
  .portal-journey-card b { width: 21px; height: 21px; }
  .portal-auth-panel { min-height: auto; padding: 46px 18px; }
  .portal-auth-heading h2 { font-size: 39px; }
  .portal-form-grid { grid-template-columns: 1fr; }
  .portal-account-type-grid { grid-template-columns: 1fr; }
  .portal-account-type-grid span { min-height: 58px; }
  .portal-form-inline { align-items: flex-start; flex-direction: column; }
  .portal-topbar { height: 67px; padding-inline: 14px; }
  .portal-top-status { display: none; }
  .portal-advisor-button { width: 42px; height: 42px; padding: 0; display: grid; place-items: center; margin-left: auto; }
  .portal-advisor-button span { display: none; }
  .portal-content-area { width: min(calc(100% - 28px), 1240px); padding-top: 22px; }
  .portal-welcome-card { min-height: 0; padding: 28px 22px; align-items: flex-start; }
  .portal-welcome-card h2 { font-size: 37px; }
  .portal-welcome-card > div:first-child > span { font-size: 12px; }
  .portal-progress-orbit { width: 94px; height: 94px; position: absolute; right: -18px; bottom: -24px; opacity: 0.28; }
  .portal-progress-orbit > span { display: none; }
  .portal-summary-grid { grid-template-columns: 1fr; }
  .portal-summary-grid article:last-child { grid-column: auto; }
  .portal-mini-steps { grid-template-columns: 1fr 1fr; }
  .portal-view-heading { align-items: flex-start; flex-direction: column; }
  .portal-view-heading h2 { font-size: 40px; }
  .portal-heading-chip { white-space: normal; }
  .portal-form-card { padding: 20px 16px; }
  .portal-profile-fields { grid-template-columns: 1fr; }
  .portal-profile-fields .portal-field.is-full { grid-column: auto; }
  .portal-form-actions,
  .portal-upload-actions { flex-direction: column-reverse; }
  .portal-form-actions button,
  .portal-upload-actions button { width: 100%; }
  .portal-document-summary { grid-template-columns: auto 1fr; }
  .portal-document-summary button { grid-column: 1 / -1; width: 100%; }
  .portal-document-row { grid-template-columns: auto 1fr; align-items: start; }
  .portal-document-group-title { align-items: flex-start; flex-direction: column; gap: 8px; }
  .portal-document-group-title p { text-align: left; }
  .portal-upload-control { grid-column: 1 / -1; }
  .portal-upload-label { flex: 1; justify-content: center; }
  .portal-support-grid { grid-template-columns: 1fr; }
  .portal-coming-state { padding: 25px 20px; align-items: flex-start; flex-direction: column; }
  .portal-empty-state { min-height: 390px; padding: 32px 20px; }
  .portal-empty-state h3 { font-size: 25px; }
}

.portal-login-security {
  align-items: center;
}

.portal-login-secure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #52647c;
  font-size: 12px;
  font-weight: 760;
}

.portal-login-secure i,
.portal-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a66a;
  box-shadow: 0 0 0 5px rgba(22, 166, 106, 0.12);
}

.portal-privacy-check a {
  color: #0b5cd6;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.portal-primary-action.is-loading,
.portal-secondary-action.is-loading,
.portal-demo-button.is-loading {
  cursor: wait;
  opacity: 0.72;
  pointer-events: none;
}

.portal-document-row.is-locked {
  background: #f7f9fc;
}

.portal-document-row.is-locked .portal-upload-label {
  cursor: not-allowed;
  opacity: 0.58;
}

.portal-doc-state {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-top: 9px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef4ff;
  color: #175bc5;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.portal-doc-state.is-approved {
  background: #e5f8ef;
  color: #08754a;
}

.portal-doc-state.is-warning {
  background: #fff1e7;
  color: #b54708;
}

.portal-doc-state.is-error {
  background: #ffe9eb;
  color: #b4232d;
}

.portal-file-remove[hidden] {
  display: none !important;
}

.portal-reset-modal[hidden] {
  display: none !important;
}

.portal-reset-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 22px;
}

.portal-reset-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 14, 36, 0.76);
  backdrop-filter: blur(8px);
}

.portal-reset-card {
  position: relative;
  width: min(100%, 480px);
  padding: 40px;
  border: 1px solid rgba(30, 97, 210, 0.16);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 20, 58, 0.32);
}

.portal-reset-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border-radius: 17px;
  background: #eaf2ff;
  color: #0b5cd6;
}

.portal-reset-icon svg {
  width: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.portal-reset-card > p {
  margin: 0 0 8px;
  color: #1764d8;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.portal-reset-card h2 {
  margin: 0;
  color: #071b3b;
  font-size: 32px;
  line-height: 1.04;
}

.portal-reset-card > span:not(.portal-reset-icon) {
  display: block;
  margin-top: 12px;
  color: #607089;
  font-size: 13px;
  line-height: 1.6;
}

.portal-reset-card form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

@media (max-width: 660px) {
  .portal-reset-card { padding: 30px 22px; border-radius: 22px; }
  .portal-reset-card h2 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .portal-page *,
  .portal-page *::before,
  .portal-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Rewards (Step 11): innesco del Wallet nella card del programma fedelta. */
.portal-rewards-open {
  margin-top: 10px;
  border: 1px solid rgba(56, 182, 255, 0.5);
  background: rgba(56, 182, 255, 0.12);
  color: inherit;
  border-radius: 999px;
  padding: 8px 14px;
  font: 600 12.5px/1 inherit;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.2s;
}
.portal-rewards-open:hover,
.portal-rewards-open:focus-visible {
  background: rgba(56, 182, 255, 0.24);
  outline: 2px solid rgba(56, 182, 255, 0.6);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
   Rewards Hub (Step 15.2): sezione permanente dell'Area Clienti.
   Stile nativo del portale: stessi token, stessa gerarchia delle altre viste.
--------------------------------------------------------------------------- */
.portal-summary-grid i.gold { color: #a06b00; background: #fff6e4; }

.portal-rewards-hub { display: grid; gap: 18px; }

/* skeleton: visibile SUBITO all'apertura, sostituito dai dati reali */
.rwh-skeleton { display: grid; gap: 14px; }
.rwh-skel {
  border-radius: 18px;
  background: linear-gradient(100deg, #e8eef6 40%, #f4f8fd 50%, #e8eef6 60%);
  background-size: 200% 100%;
  animation: rwh-shimmer 1.4s ease-in-out infinite;
  min-height: 64px;
}
.rwh-skel-hero { min-height: 168px; }
.rwh-skel-nav { min-height: 46px; max-width: 520px; }
.rwh-skel-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.rwh-skel-grid .rwh-skel { min-height: 130px; }
@keyframes rwh-shimmer { 0% { background-position: 160% 0; } 100% { background-position: -60% 0; } }

/* hero wallet: sempre visibile, anche a 0 Coin */
.rwh-hero {
  background: linear-gradient(130deg, var(--portal-navy-soft), var(--portal-navy) 68%);
  color: #fff;
  border-radius: 24px;
  padding: clamp(22px, 3.4vw, 34px);
  box-shadow: var(--portal-shadow);
}
.rwh-hero small { letter-spacing: 2.2px; font-size: 11px; opacity: 0.78; font-weight: 700; }
.rwh-balances { display: flex; gap: clamp(24px, 5vw, 58px); flex-wrap: wrap; margin-top: 14px; }
.rwh-balances strong { display: block; font-size: clamp(34px, 4.6vw, 46px); line-height: 1.05; }
.rwh-balances strong::after { content: " Coin"; font-size: 0.42em; font-weight: 600; opacity: 0.85; }
.rwh-balances em { font-style: normal; font-size: 12.5px; opacity: 0.85; }
.rwh-legal { font-size: 12.5px; opacity: 0.82; margin: 14px 0 0; max-width: 640px; line-height: 1.55; }
.rwh-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.rwh-hero-cta {
  border: 0;
  background: #fff;
  color: var(--portal-navy);
  border-radius: 999px;
  padding: 11px 20px;
  font: 700 13px/1 inherit;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.rwh-hero-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }
.rwh-hero-cta.is-ghost { background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); }

/* navigazione interna del hub */
.rwh-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.rwh-nav button {
  border: 1px solid var(--portal-line);
  background: var(--portal-white);
  color: var(--portal-muted);
  border-radius: 999px;
  padding: 10px 18px;
  font: 600 13px/1 inherit;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.rwh-nav button:hover { color: var(--portal-text); border-color: #b9c8dd; }
.rwh-nav button.is-active { background: var(--portal-navy); border-color: var(--portal-navy); color: #fff; }

/* card generiche del hub */
.rwh-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.rwh-grid.is-quad { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.rwh-card {
  background: var(--portal-white);
  border: 1px solid var(--portal-line);
  border-radius: 20px;
  padding: 22px;
  font-size: 13.5px;
  line-height: 1.55;
}
.rwh-card.is-wide { grid-column: 1 / -1; }
.rwh-card.is-soft { background: var(--portal-soft); }
.rwh-card h3 { margin: 0 0 8px; font-size: 16px; }
.rwh-card p { margin: 0 0 6px; }
.rwh-kicker { letter-spacing: 1.6px; font-size: 10.5px; font-weight: 700; color: var(--portal-muted); margin: 14px 0 8px; }
.rwh-empty { color: var(--portal-muted); padding: 14px 0 4px; }
.rwh-empty b { color: var(--portal-text); display: block; margin-bottom: 4px; }
.rwh-empty p { margin: 0; font-size: 13px; }
.rwh-link { border: 0; background: none; color: var(--portal-blue); font: 600 12.5px/1.3 inherit; cursor: pointer; padding: 4px 0; text-align: left; }
.rwh-link:hover { text-decoration: underline; }

/* passaparola */
.rwh-code { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0 4px; }
.rwh-code code { font-size: 20px; font-weight: 800; letter-spacing: 1.4px; color: var(--portal-navy); }
.rwh-code button {
  border: 1px solid var(--portal-line);
  background: var(--portal-white);
  border-radius: 999px;
  padding: 8px 14px;
  font: 600 12px/1 inherit;
  cursor: pointer;
}
.rwh-code button:hover { border-color: var(--portal-blue); color: var(--portal-blue); }
.rwh-matrix { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.rwh-matrix li {
  display: flex; justify-content: space-between; gap: 10px;
  border: 1px solid var(--portal-line); border-radius: 12px; padding: 10px 12px; font-size: 12.5px;
}
.rwh-matrix b { white-space: nowrap; }

/* store: filtri + griglia prodotti */
.rwh-store-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rwh-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.rwh-filters button {
  border: 1px solid #cbd7e6; background: var(--portal-white); color: #14213d;
  border-radius: 999px; padding: 8px 15px; font: 600 12px/1 inherit; cursor: pointer;
}
.rwh-filters button:hover:not(.is-active) {
  border-color: #6b9fe8;
  background: #eef5ff;
  color: #0a3d8f;
}
.rwh-filters button:focus-visible {
  outline: 3px solid #38b6ff;
  outline-offset: 3px;
}
.rwh-filters button.is-active { background: var(--portal-blue); border-color: var(--portal-blue); color: #fff; }
.rwh-store-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.rwh-product {
  background: var(--portal-white);
  border: 1px solid var(--portal-line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.rwh-product:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(8, 33, 74, 0.1); }
.rwh-visual {
  min-height: 108px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: #fff; text-align: center; padding: 16px;
}
.rwh-visual b { font-size: 30px; letter-spacing: 2px; opacity: 0.95; }
.rwh-visual span { font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; opacity: 0.85; }
.rwh-visual[data-tone="sky"] { background: linear-gradient(135deg, #1c64d8, #123c8f); }
.rwh-visual[data-tone="ember"] { background: linear-gradient(135deg, #d8541c, #8f2a12); }
.rwh-visual[data-tone="royal"] { background: linear-gradient(135deg, #4338ca, #1e1b4b); }
.rwh-visual[data-tone="rose"] { background: linear-gradient(135deg, #be3a63, #6d1d3a); }
.rwh-visual[data-tone="steel"] { background: linear-gradient(135deg, #33475f, #101d2e); }
.rwh-visual[data-tone="plum"] { background: linear-gradient(135deg, #7c3aed, #3b1673); }
.rwh-visual[data-tone="teal"] { background: linear-gradient(135deg, #0d9488, #064e46); }
.rwh-visual[data-tone="sand"] { background: linear-gradient(135deg, #b07d2b, #6b4712); }
.rwh-visual[data-tone="forest"] { background: linear-gradient(135deg, #15803d, #0a3d1f); }
.rwh-visual[data-tone="navy"] { background: linear-gradient(135deg, #0b2d62, #061a38); }
.rwh-visual[data-tone="night"] { background: linear-gradient(135deg, #0b2d62, #1c64d8); }
.rwh-visual[data-tone="ink"] { background: linear-gradient(135deg, #16181d, #04050a); }
/* WebCar Essentials: foto prodotto ufficiale al posto del monogramma */
.rwh-visual.is-photo {
  min-height: 0;
  aspect-ratio: 4 / 3;
  padding: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.98) 0 36%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(145deg, #f9fafc 0%, #eef2f7 100%);
  border-bottom: 1px solid rgba(10, 21, 38, 0.07);
}
.rwh-visual.is-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.rwh-soon.is-arrivo { color: var(--portal-blue, #1c64d8); font-weight: 700; letter-spacing: 0.8px; }
/* Card teaser WebCar Essentials nel pannello Wallet */
.rwh-essentials { padding: 0; overflow: hidden; }
.rwh-essentials-foto img { display: block; width: 100%; height: 150px; object-fit: cover; }
.rwh-essentials-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.rwh-essentials-body h3 { margin: 0; font-size: 16px; }
.rwh-essentials-body p { margin: 0; font-size: 12.5px; color: var(--portal-muted); line-height: 1.5; }
.rwh-badge-arrivo {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: #0b2d62; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 1.6px;
}
.rwh-product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rwh-product-body small { letter-spacing: 1.4px; font-size: 10px; font-weight: 700; color: var(--portal-muted); text-transform: uppercase; }
.rwh-product-body h4 { margin: 0; font-size: 15.5px; }
.rwh-product-body p { margin: 0; font-size: 12.5px; color: var(--portal-muted); line-height: 1.5; }
.rwh-variants { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 4px; }
.rwh-variant {
  border: 1px solid var(--portal-line); background: var(--portal-white); color: var(--portal-text);
  border-radius: 12px; padding: 7px 11px; font: 700 12.5px/1.15 inherit; cursor: pointer; text-align: center;
}
.rwh-variant small { display: block; font-size: 10.5px; font-weight: 600; color: var(--portal-muted); }
.rwh-variant.is-selected { border-color: var(--portal-blue); background: #edf4ff; }
.rwh-variant.is-selected small { color: var(--portal-blue); }
.rwh-variant[data-rw-unavailable="1"] { opacity: 0.45; }
.rwh-cta-zone { margin-top: auto; display: grid; gap: 6px; padding-top: 8px; }
.rwh-buy {
  border: 0; background: var(--portal-navy); color: #fff; border-radius: 999px;
  padding: 11px 18px; font: 700 13px/1 inherit; cursor: pointer; transition: background 0.15s;
}
.rwh-buy:not(:disabled):hover { background: var(--portal-blue); }
.rwh-buy:disabled { opacity: 0.4; cursor: not-allowed; }
.rwh-missing { margin: 0; font-size: 12.5px; color: var(--portal-orange); font-weight: 600; }
.rwh-checkout-note { margin: 6px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--portal-muted); }
.rwh-checkout-note a { color: inherit; text-decoration: underline; }
.rwh-legal a, .wc-rewards-help a { color: inherit; text-decoration: underline; }
.rwh-soon {
  margin: auto 0 0; letter-spacing: 1.6px; font-size: 11px; font-weight: 700;
  color: var(--portal-muted); padding-top: 10px;
}

/* stato di errore locale: la voce di menu non sparisce mai */
.rwh-error {
  background: var(--portal-white); border: 1px solid var(--portal-line); border-radius: 20px;
  padding: 30px; text-align: center; display: grid; gap: 10px; justify-items: center;
}
.rwh-error strong { letter-spacing: 2px; font-size: 11px; color: var(--portal-muted); }
.rwh-error p { margin: 0; }

@media (max-width: 900px) {
  .rwh-skel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 660px) {
  .rwh-hero { border-radius: 20px; }
  .rwh-balances { gap: 26px; }
  .rwh-store-grid { grid-template-columns: 1fr 1fr; }
  .rwh-nav { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .rwh-nav button { white-space: nowrap; }
}
@media (max-width: 460px) {
  .rwh-store-grid { grid-template-columns: 1fr; }
}
