/* Travel Caribe customer portal v2 */
:root {
  --portal-navy: #063970;
  --portal-navy-deep: #04294f;
  --portal-blue: #0878d1;
  --portal-blue-soft: #eaf5ff;
  --portal-cyan: #42c6d6;
  --portal-coral: #ff7a65;
  --portal-green: #16a879;
  --portal-ink: #132c3f;
  --portal-muted: #698092;
  --portal-line: #dde7ee;
  --portal-surface: #ffffff;
  --portal-canvas: #f3f7fa;
  --portal-shadow: 0 18px 45px rgba(17, 55, 83, 0.08);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}

.client-portal-v2,
.client-portal-v2 * {
  box-sizing: border-box;
}

.client-portal-v2 {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--portal-canvas);
  color: var(--portal-ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.client-portal-v2 button,
.client-portal-v2 input,
.client-portal-v2 select,
.client-portal-v2 textarea {
  font: inherit;
}

.client-portal-v2 a,
.client-portal-v2 button {
  -webkit-tap-highlight-color: transparent;
}

.client-portal-v2 a:focus-visible,
.client-portal-v2 button:focus-visible,
.client-portal-v2 input:focus-visible,
.client-portal-v2 select:focus-visible,
.client-portal-v2 textarea:focus-visible,
.client-portal-v2 summary:focus-visible {
  outline: 3px solid rgba(8, 120, 209, 0.25);
  outline-offset: 3px;
}

.client-portal-v2 [hidden] {
  display: none !important;
}

.client-portal-v2 .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.portal-topbar {
  position: sticky;
  z-index: 60;
  top: 0;
  height: 76px;
  border-bottom: 1px solid rgba(221, 231, 238, 0.9);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 30px rgba(18, 51, 73, 0.04);
  backdrop-filter: blur(18px);
}

.portal-topbar-inner {
  display: flex;
  width: min(100% - 40px, 1440px);
  height: 100%;
  margin: 0 auto;
  align-items: center;
}

.portal-brand {
  display: inline-flex;
  width: 238px;
  align-items: center;
  text-decoration: none;
}

.portal-brand img {
  display: block;
  width: 156px;
  max-height: 52px;
}

.portal-topbar-context {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 22px;
  border-left: 1px solid var(--portal-line);
}

.portal-context-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: var(--portal-blue-soft);
  color: var(--portal-blue);
}

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

.portal-topbar-context > span:last-child {
  display: grid;
  gap: 1px;
}

.portal-topbar-context small {
  color: var(--portal-muted);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-topbar-context strong {
  color: var(--portal-navy-deep);
  font-size: 0.88rem;
}

.portal-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.portal-home-link,
.portal-cart-button {
  display: inline-flex;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 13px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.portal-home-link {
  padding: 0 15px;
  border: 1px solid var(--portal-line);
  background: #fff;
  color: var(--portal-navy);
}

.portal-home-link svg {
  width: 17px;
  height: 17px;
}

.portal-cart-button {
  position: relative;
  min-width: 104px;
  padding: 0 16px;
  border: 1px solid var(--portal-navy);
  background: var(--portal-navy);
  color: #fff;
  cursor: pointer;
}

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

.portal-home-link:hover,
.portal-cart-button:hover {
  transform: translateY(-2px);
}

.portal-cart-button .payment-cart-count {
  display: grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--portal-coral);
  color: #fff;
  font-size: 0.68rem;
  line-height: 1;
}

.portal-mobile-account {
  display: none;
}

.portal-auth-gate {
  min-height: calc(100vh - 76px);
  background:
    radial-gradient(circle at 18% 15%, rgba(66, 198, 214, 0.14), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(8, 120, 209, 0.11), transparent 28%),
    var(--portal-canvas);
}

.portal-auth-card {
  border: 1px solid rgba(221, 231, 238, 0.9);
  box-shadow: var(--portal-shadow);
}

.portal-eyebrow {
  display: inline-block;
  margin: 0;
  color: var(--portal-blue);
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.portal-app {
  min-height: calc(100vh - 76px);
  background: var(--portal-canvas);
}

.portal-shell {
  display: grid;
  width: min(100% - 40px, 1440px);
  margin: 0 auto;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 28px;
}

.portal-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  height: calc(100vh - 124px);
  min-height: 620px;
  flex-direction: column;
  padding: 30px 0 24px;
}

.portal-profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 23px;
  border-bottom: 1px solid var(--portal-line);
}

.portal-profile-avatar,
.portal-mobile-account > span {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--portal-navy), var(--portal-blue));
  box-shadow: 0 10px 24px rgba(6, 57, 112, 0.2);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 900;
}

.portal-profile-card > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.portal-profile-card small {
  color: var(--portal-muted);
  font-size: 0.7rem;
}

.portal-profile-card strong {
  overflow: hidden;
  color: var(--portal-ink);
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-profile-card div > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--portal-green);
  font-size: 0.68rem;
  font-weight: 800;
}

.portal-profile-card div > span svg {
  width: 13px;
  height: 13px;
}

.portal-nav {
  display: grid;
  gap: 5px;
  margin-top: 23px;
}

.portal-nav-label {
  padding: 0 12px 8px;
  color: #92a2ae;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-nav a {
  position: relative;
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  border-radius: 12px;
  color: #5e7484;
  font-size: 0.84rem;
  font-weight: 760;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.portal-nav a::before {
  position: absolute;
  top: 11px;
  bottom: 11px;
  left: -1px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
  content: "";
}

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

.portal-nav a:hover {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.72);
  color: var(--portal-navy);
}

.portal-nav a.is-active {
  background: #fff;
  box-shadow: 0 10px 28px rgba(19, 56, 82, 0.07);
  color: var(--portal-navy);
}

.portal-nav a.is-active::before {
  background: var(--portal-blue);
}

.portal-sidebar-help {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding: 18px;
  overflow: hidden;
  border: 1px solid #dbeaf4;
  border-radius: 18px;
  background: #eaf6ff;
}

.portal-sidebar-help::after {
  position: absolute;
  right: -28px;
  bottom: -32px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(8, 120, 209, 0.08);
  content: "";
}

.portal-sidebar-help > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: var(--portal-blue);
}

.portal-sidebar-help > span svg {
  width: 20px;
}

.portal-sidebar-help strong {
  color: var(--portal-navy);
  font-size: 0.84rem;
}

.portal-sidebar-help p {
  margin: 3px 0 0;
  color: var(--portal-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.portal-sidebar-help a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--portal-blue);
  font-size: 0.73rem;
  font-weight: 900;
  text-decoration: none;
}

.portal-sidebar-help a svg {
  width: 14px;
}

.portal-sidebar-exit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  padding: 9px 10px;
  color: #7a8c98;
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
}

.portal-sidebar-exit svg {
  width: 16px;
}

.portal-workspace {
  min-width: 0;
  padding: 28px 0 34px;
}

.portal-data-notice {
  width: 100%;
  margin: 0 0 18px;
  border: 1px solid #f4d7ac;
  border-radius: 14px;
  background: #fff8eb;
  color: #7d561d;
}

.portal-hero {
  position: relative;
  display: grid;
  min-height: 350px;
  align-items: center;
  padding: 42px 46px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(125deg, var(--portal-navy-deep) 0%, #07538f 62%, #0780ad 100%);
  box-shadow: 0 24px 55px rgba(6, 57, 112, 0.2);
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 48px;
}

.portal-hero::before {
  position: absolute;
  right: 29%;
  bottom: -100px;
  width: 360px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
  transform: rotate(-10deg);
}

.portal-hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.portal-hero-glow-one {
  top: -110px;
  right: -80px;
  width: 310px;
  height: 310px;
  background: rgba(66, 198, 214, 0.16);
}

.portal-hero-glow-two {
  bottom: -80px;
  left: 22%;
  width: 210px;
  height: 210px;
  background: rgba(255, 122, 101, 0.1);
}

.portal-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.portal-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 15px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #c9f7ff;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portal-hero-kicker svg {
  width: 15px;
  height: 15px;
  color: #ffd56a;
}

.portal-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.1rem, 3.2vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.portal-hero-copy > p {
  max-width: 570px;
  margin: 17px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
  line-height: 1.65;
}

.portal-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.portal-action-primary,
.portal-action-secondary {
  display: inline-flex;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 19px;
  border-radius: 13px;
  font-size: 0.8rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.portal-action-primary {
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 19, 37, 0.16);
  color: var(--portal-navy);
}

.portal-action-primary svg {
  width: 17px;
}

.portal-action-secondary {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.portal-action-primary:hover,
.portal-action-secondary:hover {
  transform: translateY(-2px);
}

.portal-loyalty-pass {
  position: relative;
  z-index: 2;
  min-height: 235px;
  padding: 23px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 50px rgba(0, 25, 50, 0.2);
  color: #fff;
  backdrop-filter: blur(14px);
}

.portal-loyalty-pass::after {
  position: absolute;
  right: -28px;
  bottom: -45px;
  width: 140px;
  height: 140px;
  border: 24px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  content: "";
}

.portal-pass-top,
.portal-pass-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-pass-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.03em;
}

.portal-pass-brand svg {
  width: 18px;
  color: #7be9f3;
}

.portal-pass-chip {
  display: grid;
  width: 35px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #ffe08a, #ffaf61);
  color: #6b4300;
}

.portal-pass-chip svg {
  width: 17px;
}

.portal-loyalty-pass > p {
  margin: 25px 0 4px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-loyalty-pass > strong {
  font-size: 1.32rem;
  letter-spacing: -0.02em;
}

.portal-pass-points {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.65rem;
}

.portal-pass-points b {
  color: #fff;
}

.portal-pass-progress {
  height: 6px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.portal-pass-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #79e5ef, #ffd779);
  transition: width 650ms ease;
}

.portal-pass-footer {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 850;
}

.portal-pass-footer svg {
  width: 21px;
  height: 21px;
}

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

.portal-metric {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 116px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--portal-line);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(20, 60, 89, 0.045);
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.portal-metric:hover {
  transform: translateY(-3px);
  box-shadow: var(--portal-shadow);
}

.portal-metric-link {
  color: inherit;
  text-decoration: none;
}

.portal-metric-link:focus-visible {
  outline: 3px solid rgba(8, 120, 209, 0.28);
  outline-offset: 3px;
}

.portal-metric-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
}

.portal-metric-icon.is-blue {
  background: #e7f4ff;
  color: var(--portal-blue);
}

.portal-metric-icon.is-coral {
  background: #fff0ec;
  color: var(--portal-coral);
}

.portal-metric-icon.is-green {
  background: #e7f8f2;
  color: var(--portal-green);
}

.portal-metric-icon svg {
  width: 22px;
}

.portal-metric > div {
  display: grid;
}

.portal-metric small {
  color: var(--portal-muted);
  font-size: 0.7rem;
  font-weight: 760;
}

.portal-metric strong {
  margin-top: 1px;
  color: var(--portal-ink);
  font-size: 1.55rem;
  line-height: 1.1;
}

.portal-metric div > span {
  margin-top: 3px;
  color: #91a0aa;
  font-size: 0.67rem;
}

.portal-metric-arrow {
  width: 16px;
  color: #a5b2bb;
}

.portal-section {
  padding: 28px;
  border: 1px solid var(--portal-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(20, 60, 89, 0.045);
}

.portal-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.portal-section-head h2,
.portal-section-head .portal-page-title,
.portal-security-page .portal-page-title {
  margin: 5px 0 0;
  color: var(--portal-ink);
  font-size: clamp(1.4rem, 2vw, 1.78rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.portal-section-head > div > p {
  margin: 7px 0 0;
  color: var(--portal-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.portal-section-head.is-compact {
  align-items: center;
}

.portal-text-link {
  display: inline-flex;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid #cfe1ee;
  border-radius: 12px;
  background: #f8fbfd;
  color: var(--portal-navy);
  font-size: 0.74rem;
  font-weight: 900;
  text-decoration: none;
}

.portal-text-link svg {
  width: 15px;
}

.portal-trip-search {
  display: flex;
  gap: 9px;
  margin-top: 22px;
}

.portal-trip-search label {
  position: relative;
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
}

.portal-trip-search label > svg {
  position: absolute;
  left: 15px;
  width: 18px;
  color: #8aa0af;
  pointer-events: none;
}

.portal-trip-search input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--portal-line);
  border-radius: 13px;
  background: #f8fafc;
  color: var(--portal-ink);
  font-size: 0.8rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.portal-trip-search input:focus {
  border-color: #83bde7;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(8, 120, 209, 0.08);
}

.portal-trip-search button {
  min-width: 98px;
  border: 0;
  border-radius: 13px;
  background: var(--portal-navy);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.portal-table-wrap {
  width: 100%;
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--portal-line);
  border-radius: 16px;
}

.client-portal-v2 .portal-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  background: #fff;
}

.client-portal-v2 .portal-table thead {
  background: #f7fafc;
}

.client-portal-v2 .portal-table th {
  padding: 13px 16px;
  border-bottom: 1px solid var(--portal-line);
  color: #82939e;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.075em;
  text-align: left;
  text-transform: uppercase;
}

.client-portal-v2 .portal-table td {
  padding: 16px;
  border-bottom: 1px solid #edf2f5;
  color: #526b7b;
  font-size: 0.76rem;
}

.client-portal-v2 .portal-table tbody tr:last-child td {
  border-bottom: 0;
}

.client-portal-v2 .portal-table td strong {
  display: block;
  color: var(--portal-ink);
  font-size: 0.8rem;
}

.client-portal-v2 .portal-table td small {
  display: block;
  margin-top: 4px;
  color: #82939e;
  font-size: 0.68rem;
}

.client-portal-v2 .portal-table .table-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border-radius: 999px;
  background: #e8f7f1;
  color: #15805f;
  font-size: 0.66rem;
  font-weight: 850;
}

.client-portal-v2 .portal-table .panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 10px;
  border: 1px solid #cfe1ee;
  border-radius: 9px;
  color: var(--portal-blue);
  font-size: 0.68rem;
  font-weight: 850;
  text-decoration: none;
}

.client-portal-v2 .portal-table .panel-link svg {
  width: 14px;
}

.client-portal-v2 .dashboard-empty-row td {
  display: table-cell;
  padding: 34px 18px;
  text-align: center;
}

.client-portal-v2 .dashboard-empty-row td > .empty-state-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  place-items: center;
  border-radius: 15px;
  background: var(--portal-blue-soft);
  color: var(--portal-blue);
}

.client-portal-v2 .dashboard-empty-row td > div p {
  margin: 5px 0 0;
  color: var(--portal-muted);
}

.client-portal-v2 .dashboard-empty-row .status-badge {
  display: inline-flex;
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f7;
  color: #7e8e99;
  font-size: 0.64rem;
  font-weight: 850;
}

.portal-content-grid {
  display: grid;
  margin-top: 18px;
  align-items: stretch;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.65fr);
  gap: 18px;
}

.portal-soft-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--portal-blue-soft);
  color: var(--portal-blue);
  font-size: 0.66rem;
  font-weight: 800;
}

.portal-soft-badge svg {
  width: 14px;
}

.portal-points-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.portal-points-summary > div:first-child {
  display: grid;
}

.portal-points-summary span {
  color: var(--portal-muted);
  font-size: 0.72rem;
}

.portal-points-summary strong {
  margin-top: 3px;
  color: var(--portal-navy);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.portal-points-summary strong b {
  font: inherit;
}

.portal-points-ring {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 8px solid #e8f3fa;
  border-top-color: var(--portal-blue);
  border-radius: 50%;
  color: var(--portal-blue);
  transform: rotate(25deg);
}

.portal-points-ring svg {
  width: 23px;
  transform: rotate(-25deg);
}

.portal-points-track {
  margin-top: 22px;
}

.portal-points-track > div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eaf0f4;
}

.portal-points-track > div span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--portal-blue), var(--portal-cyan));
  transition: width 650ms ease;
}

.portal-points-track p {
  margin: 9px 0 0;
  color: var(--portal-muted);
  font-size: 0.7rem;
}

.portal-points-chart {
  min-height: 170px;
  margin-top: 20px;
  padding: 18px 16px 12px;
  border: 1px solid #e6edf2;
  border-radius: 16px;
  background: #f9fbfc;
}

.client-portal-v2 .portal-points-chart .points-chart-bars {
  display: flex;
  height: 108px;
  align-items: flex-end;
  justify-content: space-around;
  gap: 10px;
}

.client-portal-v2 .portal-points-chart .chart-bar {
  position: relative;
  display: flex;
  width: min(44px, 12%);
  height: var(--chart-height);
  min-height: 7px;
  justify-content: center;
  border-radius: 8px 8px 3px 3px;
  background: #badcf2;
}

.client-portal-v2 .portal-points-chart .chart-bar.is-current {
  background: linear-gradient(180deg, var(--portal-cyan), var(--portal-blue));
}

.client-portal-v2 .portal-points-chart .chart-bar.is-empty {
  background: #dfe8ed;
}

.client-portal-v2 .portal-points-chart .chart-bar b {
  position: absolute;
  bottom: -23px;
  color: #8b9aa4;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: capitalize;
}

.client-portal-v2 .portal-points-chart > p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 31px 0 0;
  color: var(--portal-muted);
  font-size: 0.66rem;
}

.client-portal-v2 .portal-points-chart > p svg {
  width: 14px;
}

.portal-next-tier {
  display: grid;
  margin-top: 17px;
  padding: 16px 18px;
  border-left: 3px solid var(--portal-coral);
  border-radius: 0 13px 13px 0;
  background: #fff7f4;
}

.portal-next-tier span {
  color: #a46b5e;
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portal-next-tier strong {
  margin-top: 2px;
  color: #7e3c2f;
  font-size: 1.1rem;
}

.portal-next-tier p {
  margin: 4px 0 0;
  color: #a36c60;
  font-size: 0.68rem;
}

.portal-points-history {
  margin-top: 17px;
  border-top: 1px solid var(--portal-line);
}

.portal-points-history summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 2px 0;
  color: var(--portal-navy);
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.portal-points-history summary::-webkit-details-marker {
  display: none;
}

.portal-points-history summary svg {
  width: 16px;
  transition: transform 180ms ease;
}

.portal-points-history[open] summary svg {
  transform: rotate(180deg);
}

.portal-points-history .portal-table-wrap {
  margin-top: 14px;
}

.portal-advisor-card {
  position: relative;
  min-height: 100%;
  padding: 30px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--portal-navy-deep);
  box-shadow: 0 18px 42px rgba(6, 57, 112, 0.14);
  color: #fff;
}

.portal-advisor-orbit {
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border: 34px solid rgba(66, 198, 214, 0.08);
  border-radius: 50%;
}

.portal-advisor-icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: #7ce4ed;
}

.portal-advisor-icon svg {
  width: 25px;
}

.portal-advisor-card .portal-eyebrow {
  color: #7ce4ed;
}

.portal-advisor-card h2 {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  color: #fff;
  font-size: 1.65rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.portal-advisor-card > p {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  line-height: 1.65;
}

.portal-advisor-card > a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin-top: 23px;
  padding: 0 15px;
  border-radius: 12px;
  background: #fff;
  color: var(--portal-navy);
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: none;
}

.portal-advisor-card > a svg {
  width: 17px;
}

.portal-advisor-availability {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.64rem;
  font-weight: 700;
}

.portal-advisor-availability span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #45dda8;
  box-shadow: 0 0 0 5px rgba(69, 221, 168, 0.11);
}

.portal-benefits-section {
  margin-top: 18px;
}

.client-portal-v2 .portal-benefits-list {
  display: grid;
  margin-top: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.client-portal-v2 .portal-benefits-list article {
  display: grid;
  min-height: 125px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--portal-line);
  border-radius: 16px;
  background: #f9fbfc;
  grid-template-columns: auto 1fr;
  gap: 13px;
}

.client-portal-v2 .portal-benefits-list .benefit-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: #fff1ed;
  color: var(--portal-coral);
}

.client-portal-v2 .portal-benefits-list .benefit-icon svg {
  width: 20px;
}

.client-portal-v2 .portal-benefits-list h3 {
  margin: 0;
  color: var(--portal-ink);
  font-size: 0.85rem;
}

.client-portal-v2 .portal-benefits-list p {
  margin: 5px 0 0;
  color: var(--portal-muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.client-portal-v2 .portal-benefits-list .benefit-points {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--portal-blue-soft);
  color: var(--portal-blue);
  font-size: 0.64rem;
  font-weight: 900;
}

.client-portal-v2 .portal-benefits-list .dashboard-benefits-empty {
  min-height: 130px;
  grid-column: 1 / -1;
}

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

.portal-sync-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf7f3;
  color: #16805f;
  font-size: 0.65rem;
  font-weight: 850;
}

.portal-sync-state svg {
  width: 13px;
}

.client-portal-v2 .portal-profile-form {
  display: grid;
  margin-top: 24px;
  gap: 20px;
}

.portal-form-block {
  padding: 20px;
  border: 1px solid var(--portal-line);
  border-radius: 17px;
  background: #fafcfd;
}

.portal-form-title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
}

.portal-form-title > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--portal-blue-soft);
  color: var(--portal-blue);
}

.portal-form-title > span svg {
  width: 18px;
}

.portal-form-title > div {
  display: grid;
  gap: 2px;
}

.portal-form-title strong {
  color: var(--portal-ink);
  font-size: 0.82rem;
}

.portal-form-title small {
  color: var(--portal-muted);
  font-size: 0.66rem;
}

.portal-form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.client-portal-v2 .portal-profile-form label {
  display: grid;
  gap: 7px;
}

.client-portal-v2 .portal-profile-form label > span {
  color: #556d7d;
  font-size: 0.69rem;
  font-weight: 800;
}

.client-portal-v2 .portal-profile-form .full-field {
  grid-column: 1 / -1;
}

.client-portal-v2 .portal-profile-form input,
.client-portal-v2 .portal-profile-form select,
.client-portal-v2 .portal-profile-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d8e3ea;
  border-radius: 11px;
  background: #fff;
  color: var(--portal-ink);
  font-size: 0.76rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.client-portal-v2 .portal-profile-form input,
.client-portal-v2 .portal-profile-form select {
  height: 44px;
  padding: 0 13px;
}

.client-portal-v2 .portal-profile-form textarea {
  min-height: 92px;
  padding: 12px 13px;
  resize: vertical;
}

.client-portal-v2 .portal-profile-form input[readonly] {
  background: #f1f5f7;
  color: #7d8f9a;
}

.client-portal-v2 .portal-profile-form input:focus,
.client-portal-v2 .portal-profile-form select:focus,
.client-portal-v2 .portal-profile-form textarea:focus {
  border-color: #83bde7;
  box-shadow: 0 0 0 4px rgba(8, 120, 209, 0.08);
}

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

.portal-form-footer p {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--portal-muted);
  font-size: 0.67rem;
}

.portal-form-footer p svg {
  width: 14px;
}

.portal-form-footer button {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--portal-navy);
  color: #fff;
  font-size: 0.73rem;
  font-weight: 900;
  cursor: pointer;
}

.portal-form-footer button svg {
  width: 16px;
}

.client-portal-v2 .portal-profile-message {
  margin-top: 13px;
  font-size: 0.72rem;
}

.portal-security-card {
  position: sticky;
  top: 103px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid #d8e8f2;
  border-radius: 22px;
  background: linear-gradient(160deg, #f3faff, #eaf6fb);
  color: var(--portal-ink);
}

.portal-security-card::after {
  position: absolute;
  right: -50px;
  bottom: -55px;
  width: 150px;
  height: 150px;
  border: 20px solid rgba(8, 120, 209, 0.05);
  border-radius: 50%;
  content: "";
}

.portal-security-visual {
  display: grid;
  width: 70px;
  height: 70px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(18, 69, 102, 0.1);
}

.portal-security-visual span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 15px;
  background: #e5f7f1;
  color: var(--portal-green);
}

.portal-security-visual svg {
  width: 24px;
}

.portal-security-card h2 {
  margin: 8px 0 0;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.portal-security-card > p {
  margin: 12px 0 0;
  color: var(--portal-muted);
  font-size: 0.75rem;
  line-height: 1.65;
}

.portal-security-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.portal-security-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4f6d7d;
  font-size: 0.69rem;
  font-weight: 750;
}

.portal-security-list span svg {
  width: 16px;
  color: var(--portal-green);
}

.portal-security-card > a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  color: var(--portal-blue);
  font-size: 0.7rem;
  font-weight: 900;
  text-decoration: none;
}

.portal-security-card > a svg {
  width: 14px;
}

.portal-page-section {
  min-height: 520px;
  margin-top: 0;
}

.portal-security-page {
  position: relative;
  top: auto;
  width: 100%;
  padding: 42px;
}

.portal-security-page > p {
  max-width: 680px;
}

.portal-security-page .portal-security-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.portal-security-page .portal-security-list span {
  min-height: 74px;
  padding: 16px;
  border: 1px solid rgba(8, 120, 209, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
}

.portal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 4px 5px;
  color: #8c9aa4;
  font-size: 0.66rem;
}

.portal-footer div {
  display: flex;
  gap: 18px;
}

.portal-footer a {
  color: #748895;
  text-decoration: none;
}

.portal-footer .portal-footer-partner {
  min-width: 205px;
  padding: 4px 30px 4px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.portal-footer .portal-footer-partner .footer-partner-label {
  color: #7f919c;
  font-size: 0.55rem;
}

.portal-footer .portal-footer-partner .footer-partner-logo-window {
  width: 178px;
  height: 32px;
  border: 0;
  background: transparent;
}

.portal-footer .portal-footer-partner .footer-partner-logo-window img {
  top: -66px;
  left: -2px;
  width: 178px;
  height: 178px;
}

.portal-footer .portal-footer-partner > svg {
  right: 10px;
  color: #8ea0ab;
}

.portal-footer .portal-footer-partner:hover {
  border-color: transparent;
  opacity: 0.82;
  transform: none;
}

.client-portal-v2 .portal-cart-backdrop {
  z-index: 80;
  background: rgba(3, 28, 51, 0.44);
  backdrop-filter: blur(4px);
}

.client-portal-v2 .portal-cart-drawer {
  z-index: 90;
  width: min(440px, 100%);
  border-left: 0;
  background: #fff;
  box-shadow: -28px 0 70px rgba(4, 41, 79, 0.18);
}

.client-portal-v2 .portal-cart-drawer .payment-cart-head {
  padding: 26px;
  border-bottom: 1px solid var(--portal-line);
}

.client-portal-v2 .portal-cart-drawer .payment-cart-head h2 {
  color: var(--portal-ink);
  font-size: 1.45rem;
}

.client-portal-v2 .portal-cart-drawer .payment-cart-close {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--portal-line);
  border-radius: 12px;
  background: #fff;
  color: var(--portal-ink);
  cursor: pointer;
}

.client-portal-v2 .portal-cart-drawer .payment-cart-summary {
  margin: 20px 24px 0;
  padding: 18px;
  border-radius: 16px;
  background: var(--portal-navy);
  color: #fff;
}

.client-portal-v2 .portal-cart-drawer .payment-cart-summary > span {
  background: rgba(255, 255, 255, 0.1);
}

.client-portal-v2 .portal-cart-drawer .payment-cart-summary small {
  color: rgba(255, 255, 255, 0.67);
}

.client-portal-v2 .portal-cart-drawer .payment-cart-list {
  padding: 20px 24px;
}

.client-portal-v2 .portal-cart-drawer .payment-cart-empty {
  padding: 28px 20px;
  border: 1px dashed #cddde7;
  border-radius: 16px;
  background: #f8fbfc;
}

.client-portal-v2 .portal-cart-drawer .payment-cart-item {
  border: 1px solid var(--portal-line);
  border-radius: 16px;
}

.client-portal-v2 .portal-cart-drawer .payment-cart-pay-link {
  border-radius: 10px;
  background: var(--portal-navy);
}

.client-portal-v2 .portal-cart-drawer .payment-cart-footer {
  border-top: 1px solid var(--portal-line);
  background: #f8fafc;
}

@media (max-width: 1180px) {
  .portal-shell {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 20px;
  }

  .portal-brand {
    width: 210px;
  }

  .portal-hero {
    padding: 36px;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
  }

  .portal-profile-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 145px;
  }

  .portal-shell {
    display: block;
    width: min(100% - 30px, 960px);
  }

  .portal-sidebar {
    position: sticky;
    z-index: 45;
    top: 76px;
    display: block;
    width: calc(100% + 30px);
    height: auto;
    min-height: 0;
    margin-left: -15px;
    padding: 8px 15px;
    overflow-x: auto;
    border-bottom: 1px solid var(--portal-line);
    background: rgba(243, 247, 250, 0.96);
    backdrop-filter: blur(14px);
  }

  .portal-profile-card,
  .portal-sidebar-help,
  .portal-sidebar-exit,
  .portal-nav-label {
    display: none;
  }

  .portal-nav {
    display: flex;
    width: max-content;
    min-width: 100%;
    gap: 6px;
    margin: 0;
  }

  .portal-nav a {
    min-height: 40px;
    flex: 0 0 auto;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 0.72rem;
  }

  .portal-nav a::before {
    display: none;
  }

  .portal-nav a.is-active {
    border-color: #dce7ee;
    box-shadow: none;
  }

  .portal-nav a svg {
    width: 16px;
  }

  .portal-workspace {
    padding-top: 18px;
  }

  .portal-hero {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .portal-content-grid,
  .portal-profile-grid {
    grid-template-columns: 1fr;
  }

  .portal-advisor-card {
    min-height: 330px;
  }

  .portal-security-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 780px) {
  .portal-topbar {
    height: 68px;
  }

  .portal-topbar-inner {
    width: min(100% - 24px, 760px);
  }

  .portal-brand {
    width: auto;
  }

  .portal-brand img {
    width: 132px;
  }

  .portal-topbar-context {
    display: none;
  }

  .portal-mobile-account {
    display: inline-flex;
  }

  .portal-mobile-account > span {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    font-size: 0.75rem;
  }

  .portal-home-link {
    width: 42px;
    padding: 0;
  }

  .portal-home-link span {
    display: none;
  }

  .portal-cart-button {
    min-width: 44px;
    width: 44px;
    padding: 0;
  }

  .portal-cart-label {
    display: none;
  }

  .portal-cart-button .payment-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
  }

  .portal-shell {
    width: min(100% - 24px, 760px);
  }

  .portal-sidebar {
    top: 68px;
    width: calc(100% + 24px);
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .portal-hero {
    min-height: auto;
    padding: 30px 24px 24px;
    border-radius: 23px;
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .portal-hero-copy > p {
    font-size: 0.88rem;
  }

  .portal-loyalty-pass {
    min-height: 220px;
  }

  .portal-metrics {
    grid-template-columns: 1fr;
  }

  .portal-metric {
    min-height: 96px;
  }

  .portal-section {
    padding: 22px 18px;
    border-radius: 19px;
  }

  .portal-page-section {
    min-height: 0;
  }

  .portal-security-page {
    padding: 28px 22px;
  }

  .portal-security-page .portal-security-list {
    grid-template-columns: 1fr;
  }

  .portal-security-page .portal-security-list span {
    min-height: 0;
  }

  .portal-section-head {
    align-items: flex-start;
  }

  .portal-benefits-list {
    grid-template-columns: 1fr !important;
  }

  .client-portal-v2 .portal-benefits-list .dashboard-benefits-empty {
    grid-column: auto;
  }

  .portal-form-fields {
    grid-template-columns: 1fr;
  }

  .client-portal-v2 .portal-profile-form .full-field {
    grid-column: auto;
  }

  .portal-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-form-footer button {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .portal-brand img {
    width: 112px;
  }

  .portal-topbar-actions {
    gap: 7px;
  }

  .portal-mobile-account {
    display: none;
  }

  .portal-nav a {
    padding: 0 10px;
  }

  .portal-nav a span {
    font-size: 0.68rem;
  }

  .portal-hero h1 {
    font-size: 2rem;
  }

  .portal-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-action-primary,
  .portal-action-secondary {
    width: 100%;
  }

  .portal-pass-points {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-section-head {
    flex-direction: column;
  }

  .portal-text-link {
    width: 100%;
    justify-content: center;
  }

  .portal-trip-search {
    flex-direction: column;
  }

  .portal-trip-search button {
    min-height: 44px;
  }

  .portal-advisor-card {
    min-height: 360px;
    padding: 26px 22px;
  }

  .portal-points-summary strong {
    font-size: 2.35rem;
  }

  .portal-form-block {
    padding: 16px;
  }

  .portal-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .portal-footer .portal-footer-partner {
    width: min(100%, 245px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .client-portal-v2 *,
  .client-portal-v2 *::before,
  .client-portal-v2 *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
