.tripy-web-app {
  --tripy-bg: #eef3ff;
  --tripy-surface: rgba(255, 255, 255, 0.94);
  --tripy-surface-strong: #ffffff;
  --tripy-border: rgba(156, 163, 175, 0.22);
  --tripy-text: #0f172a;
  --tripy-muted: #64748b;
  --tripy-primary: #2668f0;
  --tripy-primary-2: #16b4d8;
  --tripy-success: #19bf4b;
  --tripy-shadow: 0 22px 64px rgba(15, 23, 42, 0.12);
  position: relative;
  min-height: 100vh;
  padding: 20px 18px 110px;
  background:
    radial-gradient(circle at top left, rgba(64, 120, 255, 0.16), transparent 25%),
    radial-gradient(circle at top right, rgba(60, 208, 224, 0.14), transparent 24%),
    linear-gradient(180deg, #fafcff 0%, #f4f8ff 18%, var(--tripy-bg) 100%);
  color: var(--tripy-text);
  font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
}

.tripy-web-app,
.tripy-web-app *,
.tripy-web-app *::before,
.tripy-web-app *::after {
  box-sizing: border-box;
}

.tripy-web-topbar {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: min(1240px, 100%);
  margin: 0 auto 22px;
  padding: 14px 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(17, 28, 61, 0.94);
  box-shadow: var(--tripy-shadow);
  backdrop-filter: blur(18px);
}

.tripy-web-topbar__left,
.tripy-web-topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tripy-web-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.tripy-web-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.28);
}

.tripy-web-chip,
.tripy-web-icon-btn,
.tripy-web-card,
.tripy-web-drawer__nav a,
.tripy-web-drawer__quick,
.tripy-web-action,
.tripy-web-form button,
.tripy-web-pill,
.tripy-web-bottom-nav__link,
.tripy-web-fab-menu a,
.tripy-web-fab {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}

.tripy-web-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.tripy-web-chip--primary {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(34, 197, 94, 0.82));
  border-color: transparent;
}

.tripy-web-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.tripy-web-icon-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  border-radius: 999px;
  background: #fff;
}

.tripy-web-main {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.tripy-web-screen {
  display: grid;
  gap: 22px;
}

.tripy-web-panel {
  overflow: hidden;
  border: 1px solid var(--tripy-border);
  border-radius: 28px;
  background: var(--tripy-surface);
  box-shadow: var(--tripy-shadow);
  backdrop-filter: blur(16px);
}

.tripy-web-loading {
  display: grid;
  place-items: center;
  min-height: 50vh;
  gap: 12px;
  color: var(--tripy-muted);
}

.tripy-web-loading__spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(37, 99, 235, 0.14);
  border-top-color: var(--tripy-primary);
  border-radius: 50%;
  animation: tripy-spin 0.8s linear infinite;
}

.tripy-web-empty,
.tripy-web-message {
  padding: 28px;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--tripy-muted);
}

.tripy-web-grid {
  display: grid;
  gap: 18px;
}

.tripy-web-grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tripy-web-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 24px;
  background: var(--tripy-surface-strong);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.tripy-web-card:hover,
.tripy-web-chip:hover,
.tripy-web-drawer__nav a:hover,
.tripy-web-drawer__quick:hover,
.tripy-web-action:hover,
.tripy-web-bottom-nav__link:hover,
.tripy-web-fab-menu a:hover,
.tripy-web-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.tripy-web-card__media {
  aspect-ratio: 1.28;
  background: linear-gradient(135deg, #dbeafe, #ecfeff);
}

.tripy-web-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.tripy-web-card__body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.tripy-web-card__eyebrow,
.tripy-web-meta {
  color: var(--tripy-muted);
  font-size: 13px;
  font-weight: 600;
}

.tripy-web-card__title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.28;
}

.tripy-web-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.tripy-web-price strong {
  font-size: 24px;
  font-weight: 800;
}

.tripy-web-price s {
  color: #94a3b8;
}

.tripy-web-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--tripy-primary);
  font-size: 12px;
  font-weight: 800;
}

.tripy-web-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}

.tripy-web-drawer.is-open {
  pointer-events: auto;
}

.tripy-web-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.tripy-web-drawer.is-open .tripy-web-drawer__backdrop {
  opacity: 1;
}

.tripy-web-drawer__panel {
  position: relative;
  z-index: 1;
  width: min(430px, calc(100vw - 18px));
  height: calc(100vh - 18px);
  margin: 9px;
  padding: 18px;
  border-radius: 30px;
  background: rgba(14, 24, 53, 0.98);
  color: #fff;
  box-shadow: 0 30px 70px rgba(2, 8, 23, 0.36);
  transform: translateX(-104%);
  transition: transform 0.24s ease;
  overflow-y: auto;
}

.tripy-web-drawer.is-open .tripy-web-drawer__panel {
  transform: translateX(0);
}

.tripy-web-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 18px;
}

.tripy-web-drawer__head button {
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font-size: 24px;
}

.tripy-web-drawer__head--card {
  padding: 16px;
  border-radius: 26px;
  background: linear-gradient(135deg, #2785b2, #5c11b3);
}

.tripy-web-drawer__profile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  width: 100%;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.tripy-web-drawer__avatar {
  width: 72px;
  height: 72px;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(192, 233, 255, 0.95));
  box-shadow: 0 10px 22px rgba(11, 19, 48, 0.2);
}

.tripy-web-drawer__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.tripy-web-drawer__identity {
  display: grid;
  gap: 4px;
}

.tripy-web-drawer__eyebrow,
.tripy-web-drawer__meta {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 700;
}

.tripy-web-drawer__identity strong {
  font-size: 18px;
  line-height: 1.15;
}

.tripy-web-drawer__chevron {
  align-self: center;
  font-size: 32px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.88);
}

.tripy-web-drawer__quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.tripy-web-drawer__quick {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 14px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  color: #101727;
  text-decoration: none;
  text-align: center;
}

.tripy-web-drawer__quick-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(16, 185, 129, 0.1));
}

.tripy-web-drawer__quick-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tripy-web-drawer__quick b {
  font-size: 13px;
}

.tripy-web-drawer__section {
  margin-top: 18px;
}

.tripy-web-drawer__section h4 {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tripy-web-drawer__nav {
  display: grid;
  gap: 10px;
}

.tripy-web-drawer__nav--cards a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.tripy-web-drawer__nav--cards a::after {
  content: "›";
  margin-left: auto;
  font-size: 22px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.58);
}

.tripy-web-drawer__nav--cards .tripy-web-drawer__tile-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
}

.tripy-web-drawer__nav--cards .tripy-web-drawer__tile-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tripy-web-drawer__nav--cards .tripy-web-drawer__tile-icon--flag {
  padding: 4px;
}

.tripy-web-drawer__nav--cards .tripy-web-drawer__tile-icon--flag img {
  object-fit: cover;
  border-radius: 12px;
}

.tripy-web-drawer__tile-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.tripy-web-drawer__tile-copy strong,
.tripy-web-drawer__tile-copy small {
  display: block;
}

.tripy-web-drawer__tile-copy strong {
  font-size: 15px;
  line-height: 1.15;
}

.tripy-web-drawer__tile-copy small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 600;
}

.tripy-web-form {
  display: grid;
  gap: 14px;
}

.tripy-web-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.tripy-web-form input,
.tripy-web-form select,
.tripy-web-form textarea,
.tripy-web-form button {
  font: inherit;
}

.tripy-web-form input,
.tripy-web-form select,
.tripy-web-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--tripy-text);
}

.tripy-web-form textarea {
  min-height: 124px;
  padding: 12px 14px;
  resize: vertical;
}

.tripy-web-form button,
.tripy-web-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--tripy-primary), var(--tripy-primary-2));
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.tripy-web-action--ghost {
  background: rgba(15, 23, 42, 0.06);
  color: var(--tripy-text);
}

.tripy-web-link {
  border: 0;
  background: transparent;
  color: #6a4be8;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tripy-web-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tripy-account-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.tripy-account-stat {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(203, 213, 225, 0.7);
}

.tripy-account-stat span {
  color: var(--tripy-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.tripy-account-stat strong {
  font-size: 28px;
  line-height: 1;
}

.tripy-account-stat--green {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(255, 255, 255, 0.98));
}

.tripy-account-stat--blue {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(255, 255, 255, 0.98));
}

.tripy-account-stat--amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(255, 255, 255, 0.98));
}

.tripy-account-list {
  display: grid;
  gap: 14px;
}

.tripy-web-fab {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 42;
  width: 66px;
  height: 66px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #1dcc54, #2563eb);
  color: #fff;
  box-shadow: 0 22px 40px rgba(37, 99, 235, 0.32);
  cursor: pointer;
  font-size: 40px;
}

.tripy-web-fab span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tripy-web-fab--assistant {
  bottom: 102px;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
}

.tripy-web-fab-menu {
  position: fixed;
  right: 18px;
  bottom: 182px;
  z-index: 41;
  display: grid;
  gap: 10px;
}

.tripy-web-fab-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(10, 21, 49, 0.94);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.24);
}

.tripy-web-fab-menu a img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.tripy-web-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 10px;
  z-index: 40;
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  width: min(720px, calc(100vw - 20px));
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.2);
}

.tripy-web-bottom-nav__link {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 8px 4px 4px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: #94a3b8;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.tripy-web-bottom-nav__link img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.tripy-web-bottom-nav__link span {
  font-size: 12px;
  font-weight: 700;
}

.tripy-web-bottom-nav__link.is-active {
  color: #2f53c6;
}

.tripy-web-bottom-nav__link--tripy img {
  width: 44px;
  height: 44px;
  padding: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.tripy-web-bottom-nav__link--services img {
  width: 30px;
  height: 30px;
}

@keyframes tripy-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 960px) {
  .tripy-web-app {
    padding: 12px 12px 116px;
  }

  .tripy-web-topbar {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 22px;
  }

  .tripy-web-chip {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }
}

@media (max-width: 820px) {
  .tripy-web-topbar {
    top: 10px;
    flex-direction: column;
    align-items: stretch;
  }

  .tripy-web-topbar__right {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .tripy-web-bottom-nav {
    display: grid;
  }
}

@media (max-width: 640px) {
  .tripy-web-app {
    padding-inline: 10px;
  }

  .tripy-web-topbar {
    display: none;
  }

  .tripy-web-main {
    width: 100%;
  }

  .tripy-web-panel {
    border-radius: 24px;
  }

  .tripy-web-fab {
    display: none;
  }

  .tripy-web-drawer__panel {
    width: calc(100vw - 14px);
    height: calc(100vh - 14px);
    margin: 7px;
    border-radius: 26px;
    padding: 14px;
  }

  .tripy-web-drawer__quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tripy-account-stats {
    grid-template-columns: 1fr;
  }

  .tripy-web-card__body {
    padding: 14px;
  }
}
