.my-trips-page {
  --trips-navy: #062a4e;
  --trips-navy-dark: #041f3d;
  --trips-red: #f3223a;
  --trips-text: #092c50;
  --trips-muted: #5e7389;
  --trips-line: #dfe7ed;
  color: var(--trips-text);
  background: #fff;
}

.my-trips-page main { padding: 26px 0 0; background: linear-gradient(180deg, #fff, #fbfcfd 85%); }
.my-trips-page h1,
.my-trips-page h2,
.my-trips-page p { margin-top: 0; }

.trips-shell {
  width: min(1360px, calc(100% - 64px));
  margin-inline: auto;
}

.trips-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 265px;
  align-items: start;
  gap: 20px;
}

.my-trips-page .header-actions .sign-in.is-active {
  display: inline-flex;
  min-width: 126px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-color: rgba(243,34,58,.42);
  color: var(--trips-red);
  background: #fff;
}

.my-trips-page .header-actions .sign-in.is-active svg { font-size: 18px; }
.my-trips-page .header-actions .book-header { gap: 8px; color: #092c50; background: #fff; box-shadow: none; }
.my-trips-page .header-actions .book-header svg { color: var(--trips-red); font-size: 16px; }

.trips-left-column,
.trips-right-column { display: grid; gap: 22px; }

.trips-profile-card,
.trips-side-nav,
.trips-help-card,
.trips-center-column,
.trip-offers-card,
.saved-trips-card {
  border: 1px solid var(--trips-line);
  background: #fff;
  box-shadow: 0 10px 28px rgba(5,41,78,.06);
}

.trips-profile-card {
  position: relative;
  display: flex;
  min-height: 110px;
  align-items: center;
  gap: 14px;
  padding: 20px 18px;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  border-bottom: 0;
  background:
    radial-gradient(circle at 78% 0, rgba(255,255,255,.8), transparent 42%),
    linear-gradient(135deg, #fff6f5, #ffeceb);
}

.trips-profile-card::after {
  content: "";
  position: absolute;
  right: -29px;
  bottom: -47px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
}

.trips-profile-card > span {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--trips-red);
  background: rgba(255,255,255,.72);
}

.trips-profile-card > span svg { font-size: 27px; }
.trips-profile-card p { position: relative; z-index: 1; margin: 0; }
.trips-profile-card strong { display: block; margin-bottom: 5px; font-size: 14px; }
.trips-profile-card small { display: block; color: #5e6f83; font-size: 13px; line-height: 1.6; }

.trips-side-nav {
  display: grid;
  gap: 3px;
  margin-top: -22px;
  padding: 15px 11px 19px;
  border-top: 0;
  border-radius: 0 0 14px 14px;
}

.trips-side-nav button,
.trips-side-nav a {
  display: flex;
  width: 100%;
  min-height: 47px;
  align-items: center;
  gap: 13px;
  padding: 0 14px;
  border-radius: 8px;
  color: #183858;
  background: transparent;
  font-size: 15px;
  font-weight: 670;
  text-align: left;
  cursor: pointer;
}

.trips-side-nav svg { font-size: 18px; }
.trips-side-nav button:hover,
.trips-side-nav a:hover { background: #f7f9fb; }
.trips-side-nav button.is-active { color: var(--trips-red); background: linear-gradient(90deg, #fff0f0, #fff7f6); }

.trips-help-card {
  padding: 24px 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(145deg, #f8f9fb, #fff);
}

.trips-help-card h2 { margin: 0 0 3px; font-size: 17px; }
.trips-help-card > p { margin-bottom: 16px; color: var(--trips-muted); font-size: 13px; }
.trips-help-card a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  border: 1px solid #d5e0e8;
  border-radius: 8px;
  color: #123957;
  background: #fff;
  font-size: 15px;
  font-weight: 700;
}

.trips-help-card a svg { color: #155c91; font-size: 18px; }
.trips-help-card a:last-child svg { color: #1ebd62; }

.trips-center-column {
  display: grid;
  gap: 16px;
  padding: 21px 22px 19px;
  border-radius: 14px;
}

.trips-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.trips-page-heading h1 { margin: 0 0 4px; font-size: 30px; line-height: 1.2; letter-spacing: -.035em; }
.trips-page-heading p { margin: 0; color: var(--trips-muted); font-size: 15px; }
.trips-heading-actions { display: flex; align-items: center; gap: 9px; }
.trips-page-heading > button,
.trips-heading-download,
.trips-heading-action {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid #d6e0e8;
  border-radius: 8px;
  color: #143b5f;
  background: #fff;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.trips-page-heading > button svg,
.trips-heading-download svg,
.trips-heading-action svg { color: var(--trips-red); font-size: 18px; }
.trips-heading-download em {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: var(--trips-red);
  font-size: 10px;
  font-style: normal;
}
.trips-heading-download:disabled { opacity: .55; cursor: not-allowed; }
.trips-heading-download:not(:disabled):hover { border-color: rgba(243,34,58,.5); background: #fff8f8; }

.trips-auth-state,
.trips-zero-state {
  display: grid;
  min-height: 330px;
  place-items: center;
  align-content: center;
  padding: 36px 24px;
  border: 1px dashed #cfdae4;
  border-radius: 12px;
  background: linear-gradient(145deg, #fbfdff, #fff8f8);
  text-align: center;
}

.trips-auth-state[hidden],
.trips-zero-state[hidden] { display: none; }
.trips-auth-state > span,
.trips-zero-state > span { display: grid; width: 68px; height: 68px; place-items: center; border-radius: 50%; color: var(--trips-red); background: #ffe8eb; }
.trips-auth-state > span svg,
.trips-zero-state > span svg { font-size: 31px; }
.trips-auth-state h2,
.trips-zero-state h2 { margin: 18px 0 8px; font-size: 23px; }
.trips-auth-state p,
.trips-zero-state p { max-width: 470px; margin: 0; color: var(--trips-muted); font-size: 14px; line-height: 1.7; }
.trips-auth-state button,
.trips-zero-state a { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; gap: 10px; margin-top: 21px; padding: 0 21px; border-radius: 8px; color: #fff; background: var(--trips-red); font-size: 13px; font-weight: 800; cursor: pointer; box-shadow: 0 9px 20px rgba(243,34,58,.2); }
.trips-auth-state button svg,
.trips-zero-state a svg { font-size: 16px; }

.trips-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 7px;
}

.trips-stats article {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 12px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
}

.trips-stats article p { margin: 0; }
.trips-stats article small { display: block; margin-bottom: 2px; color: #3f5b76; font-size: 12px; }
.trips-stats article strong { display: block; color: #092c50; font-size: 22px; line-height: 1; }
.trips-stats article > span { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 50%; }
.trips-stats article > span svg { font-size: 21px; }
.trips-stats .is-total { border-color: #ffe0e6; background: linear-gradient(135deg, #fff7fa, #fff0f4); }
.trips-stats .is-total > span { color: var(--trips-red); background: #ffe5eb; }
.trips-stats .is-upcoming { border-color: #d8edf9; background: linear-gradient(135deg, #f8fdff, #eefaff); }
.trips-stats .is-upcoming > span { color: #1898d7; background: #dff5ff; }
.trips-stats .is-completed { border-color: #dcefe2; background: linear-gradient(135deg, #f8fff9, #effaf2); }
.trips-stats .is-completed > span { color: #179456; background: #dff3e5; }
.trips-stats .is-cancelled { border-color: #f6e8d8; background: linear-gradient(135deg, #fffbf7, #fff5e9); }
.trips-stats .is-cancelled > span { color: #f06c18; background: #fff0df; }

.trips-filter-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 49px;
  overflow: hidden;
  border: 1px solid #dae4eb;
  border-radius: 9px;
  background: #fff;
}

.trips-filter-tabs button {
  position: relative;
  color: #526b84;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}

.trips-filter-tabs button::after {
  content: "";
  position: absolute;
  right: 15px;
  bottom: 0;
  left: 15px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: transparent;
}

.trips-filter-tabs button.is-active { color: #0a3154; font-weight: 800; }
.trips-filter-tabs button.is-active::after { background: var(--trips-red); }

.trips-list { display: grid; gap: 11px; }

.booking-card {
  display: grid;
  min-height: 151px;
  grid-template-columns: 207px minmax(0, 1fr) 145px;
  align-items: center;
  gap: 17px;
  padding: 12px;
  border: 1px solid #dce5eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(5,41,78,.045);
}

.booking-card[hidden] { display: none; }

.booking-visual {
  position: relative;
  height: 127px;
  overflow: hidden;
  border-radius: 9px;
  background: #e9f2f4;
}

.booking-landscape { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) brightness(1.05); }
.booking-car {
  position: absolute;
  right: 9px;
  bottom: 2px;
  width: 80%;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 9px 7px rgba(6,28,46,.24));
}

.trip-status {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 8px;
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 7px;
  font-weight: 850;
  text-transform: uppercase;
}

.trip-status svg { font-size: 13px; }
.trip-status.is-upcoming { background: #17a564; }
.trip-status.is-completed { background: #168f52; }
.trip-status.is-cancelled { background: #f03345; }

.booking-info { align-self: stretch; padding: 4px 0 2px; }
.booking-info h2 { margin: 0 0 14px; color: #082d52; font-size: 17px; letter-spacing: -.025em; }
.booking-date { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 23px; color: #425d76; }
.booking-date span { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; }
.booking-date svg { color: #0c3e69; font-size: 15px; }
.booking-info > p { margin: 0 0 5px; color: #173b5c; font-size: 13px; }
.booking-info > small { display: inline-flex; min-height: 24px; align-items: center; padding: 0 10px; border: 1px solid #ccdae4; border-radius: 4px; color: #1f4566; font-size: 9px; }

.booking-summary {
  display: grid;
  align-self: stretch;
  align-content: space-between;
  padding: 3px 0 0;
}

.booking-summary p { margin: 0; }
.booking-summary p small { display: block; margin-bottom: 2px; color: #77899a; font-size: 8px; }
.booking-summary p strong { display: flex; align-items: center; gap: 5px; color: #0b3154; font-size: 13px; }
.booking-summary p:nth-child(2) strong { font-size: 14px; }
.booking-summary p button { display: inline-grid; place-items: center; padding: 2px; color: #61778c; background: transparent; cursor: pointer; }
.booking-summary p button svg { font-size: 15px; }
.booking-summary > a {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--trips-red);
  border-radius: 7px;
  color: var(--trips-red);
  font-size: 9px;
  font-weight: 800;
}

.booking-summary > a svg { font-size: 14px; }

.trips-load-more {
  display: flex;
  width: 100%;
  min-height: 37px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #d9e3ea;
  border-radius: 7px;
  color: #173a5a;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.trips-load-more svg { font-size: 15px; transform: rotate(90deg); }
.trips-empty { margin: 35px 0; color: var(--trips-muted); font-size: 15px; text-align: center; }

.trip-support-card {
  position: relative;
  min-height: 258px;
  padding: 26px 19px 18px;
  overflow: hidden;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #07355f, #021e3b);
  box-shadow: 0 13px 32px rgba(3,31,58,.18);
}

.trip-support-card > div { position: relative; z-index: 2; }
.trip-support-card h2 { margin: 0 0 9px; color: #fff; font-size: 19px; }
.trip-support-card p { margin: 0; color: rgba(255,255,255,.78); font-size: 13px; line-height: 1.75; }
.trip-support-card > img { position: absolute; top: 42px; right: 9px; width: 94px; height: 94px; border: 4px solid rgba(255,255,255,.2); border-radius: 50%; object-fit: cover; }
.trip-support-card > a {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 11px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
}

.trip-support-card > a:nth-of-type(1) { margin-top: 33px; border-color: transparent; background: linear-gradient(110deg, #ee1730, #ff3248); box-shadow: 0 9px 20px rgba(238,23,48,.25); }
.trip-support-card > a svg { font-size: 17px; }
.trip-support-card > a:last-child svg { color: #2acc69; }

.trip-offers-card,
.saved-trips-card { padding: 23px 19px; border-radius: 14px; }
.trip-offers-card > h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 15px; font-size: 16px; }
.trip-offers-card > h2 svg { color: var(--trips-red); font-size: 21px; }
.offer-item { display: flex; min-height: 82px; align-items: center; gap: 13px; padding: 13px; border-radius: 10px; }
.offer-item + .offer-item { margin-top: 10px; }
.offer-item.is-local { background: linear-gradient(135deg, #fff7f6, #fff0ef); }
.offer-item.is-outstation { background: linear-gradient(135deg, #f5fff9, #eefaf3); }
.offer-item > span { display: grid; width: 43px; height: 43px; flex: 0 0 auto; place-items: center; border-radius: 50%; }
.offer-item.is-local > span { color: var(--trips-red); background: #ffe3e2; }
.offer-item.is-outstation > span { color: #168c51; background: #dcf4e5; }
.offer-item > span strong { font-size: 21px; }
.offer-item > span svg { font-size: 20px; }
.offer-item p { margin: 0; }
.offer-item b { display: block; color: #143654; font-size: 13px; }
.offer-item small { display: block; margin: 2px 0 5px; color: #506a80; font-size: 9px; }
.offer-item em { color: #506a80; font-size: 8px; font-style: normal; }
.offer-item mark { padding: 2px 5px; border-radius: 3px; color: var(--trips-red); background: #ffdede; font-size: 8px; }
.offer-item.is-outstation mark { color: #14824c; background: #d8f0e1; }
.all-offers-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 15px; color: var(--trips-red); font-size: 12px; font-weight: 800; }
.all-offers-link svg { font-size: 14px; }

.saved-trips-card { background: linear-gradient(145deg, #fbfcff, #f6f8fb); }
.saved-trips-card h2 { margin: 0 0 8px; font-size: 14px; line-height: 1.35; }
.saved-trips-card p { margin-bottom: 18px; color: #607489; font-size: 12px; line-height: 1.65; }
.saved-trips-card a { display: flex; min-height: 39px; align-items: center; justify-content: center; gap: 9px; border: 1px solid #d1dce5; border-radius: 7px; background: #fff; font-size: 12px; font-weight: 750; }
.saved-trips-card a svg { font-size: 15px; }

.trips-trust-section { padding: 26px 0 27px; }
.trips-trust-strip {
  display: grid;
  min-height: 84px;
  grid-template-columns: 225px repeat(4, 1fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid #f1dedc;
  border-radius: 14px;
  background: linear-gradient(90deg, #fff7f6, #fff 48%, #fff7f6);
}

.trips-trust-strip > h2 { margin: 0; padding: 0 29px; font-size: 16px; }
.trips-trust-strip article { display: flex; min-height: 52px; align-items: center; gap: 13px; padding: 6px 20px; border-left: 1px solid #eddfdd; }
.trips-trust-strip article > span { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; border: 1px solid var(--trips-red); border-radius: 50%; color: var(--trips-red); }
.trips-trust-strip article > span svg { font-size: 21px; }
.trips-trust-strip article p { margin: 0; }
.trips-trust-strip article strong { display: block; color: #0b3154; font-size: 12px; }
.trips-trust-strip article small { display: block; margin-top: 2px; color: #65798d; font-size: 8px; }

@media (max-width: 1180px) {
  .trips-shell { width: min(100% - 40px, 1080px); }
  .trips-layout { grid-template-columns: 195px minmax(0, 1fr) 225px; gap: 15px; }
  .trips-profile-card { padding-inline: 13px; }
  .trips-side-nav button,
  .trips-side-nav a { padding-inline: 10px; font-size: 12px; }
  .trips-center-column { padding-inline: 16px; }
  .booking-card { grid-template-columns: 170px minmax(0, 1fr) 125px; gap: 13px; }
  .booking-visual { height: 116px; }
  .booking-date { gap: 8px 13px; }
  .trip-support-card > img { width: 75px; height: 75px; }
  .trips-trust-strip { grid-template-columns: 185px repeat(4, 1fr); }
  .trips-trust-strip article { padding-inline: 12px; }
}

@media (max-width: 930px) {
  .trips-shell { width: min(100% - 34px, 760px); }
  .trips-layout { grid-template-columns: 1fr; }
  .trips-left-column { gap: 0; }
  .trips-profile-card { min-height: 88px; }
  .trips-side-nav { grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 0; }
  .trips-side-nav button,
  .trips-side-nav a { justify-content: center; padding: 0 8px; text-align: center; }
  .trips-side-nav a:nth-of-type(n+1) { display: none; }
  .trips-help-card { display: none; }
  .trips-right-column { grid-template-columns: repeat(2, 1fr); }
  .saved-trips-card { grid-column: 1 / -1; }
  .trips-trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trips-trust-strip > h2 { grid-column: 1 / -1; padding: 18px 22px; border-bottom: 1px solid #eddfdd; }
  .trips-trust-strip article:nth-of-type(odd) { border-left: 0; }
  .trips-trust-strip article:nth-of-type(-n+2) { border-bottom: 1px solid #eddfdd; }
}

@media (max-width: 640px) {
  .trips-shell { width: min(100% - 24px, 520px); }
  .my-trips-page main { padding-top: 14px; }
  .trips-profile-card { border-radius: 12px 12px 0 0; }
  .trips-side-nav { grid-template-columns: repeat(2, 1fr); border-radius: 0 0 12px 12px; }
  .trips-side-nav button { min-height: 42px; }
  .trips-center-column { padding: 18px 12px 14px; border-radius: 12px; }
  .trips-page-heading { align-items: stretch; flex-direction: column; }
  .trips-heading-actions { display: grid; grid-template-columns: 1fr; }
  .trips-page-heading h1 { font-size: 27px; }
  .trips-page-heading > button,
  .trips-heading-download,
  .trips-heading-action { justify-content: center; }
  .trips-stats { grid-template-columns: repeat(2, 1fr); }
  .trips-filter-tabs { overflow-x: auto; grid-template-columns: repeat(4, minmax(95px, 1fr)); }
  .booking-card { grid-template-columns: 1fr; }
  .booking-visual { height: 180px; }
  .booking-car { width: 73%; height: 128px; }
  .booking-date { margin-bottom: 14px; }
  .booking-summary { grid-template-columns: repeat(2, 1fr); gap: 13px; }
  .booking-summary > a { grid-column: 1 / -1; }
  .trips-right-column { grid-template-columns: 1fr; }
  .saved-trips-card { grid-column: auto; }
  .trips-trust-strip { grid-template-columns: 1fr; }
  .trips-trust-strip article,
  .trips-trust-strip article:nth-of-type(odd) { border-left: 0; border-bottom: 1px solid #eddfdd; }
  .trips-trust-strip article:last-child { border-bottom: 0; }
}
