:root {
  --tb-bg: #f3f6f8;
  --tb-ink: #112136;
  --tb-accent: #0f766e;
  --tb-accent-2: #2563eb;
  --tb-panel: rgba(255, 255, 255, 0.92);
  --tb-line: rgba(17, 33, 54, 0.08);
  --tb-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--tb-ink);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.16), transparent 24%),
    linear-gradient(180deg, #eef3f7 0%, #f8fbfc 100%);
}

body.booting .site-shell {
  visibility: hidden;
}

.boot-splash {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.16), transparent 24%),
    linear-gradient(180deg, #eef3f7 0%, #f8fbfc 100%);
  z-index: 3000;
}

body.booting .boot-splash {
  display: flex;
}

.boot-splash-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.boot-splash-logo {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  padding: 0.12rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.boot-splash-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--tb-ink);
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

body.session-timeout-active {
  overflow: hidden;
}

.web-session-timeout-overlay {
  position: fixed;
  inset: 0;
  z-index: 2800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.web-session-timeout-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 15, 24, 0.76);
  backdrop-filter: blur(3px);
}

.web-session-timeout-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 2rem));
  padding: 2rem 1.8rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 36px 70px rgba(15, 23, 42, 0.38);
  text-align: center;
}

.web-session-timeout-title {
  font-size: clamp(1.7rem, 4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--tb-ink);
  margin-bottom: 0.8rem;
}

.web-session-timeout-message {
  font-size: 1rem;
  line-height: 1.6;
  color: #5b6b7e;
  margin-bottom: 1.4rem;
}

.web-session-timeout-button {
  min-width: min(280px, 100%);
  margin-top: 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 18px 28px rgba(37, 99, 235, 0.2);
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(960px, calc(100vw - 2rem));
  z-index: 1090;
}

.cookie-banner-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 33, 54, 0.08);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(10px);
}

.cookie-banner-title {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.18rem;
}

.cookie-banner-text {
  color: #5b6b7e;
  font-size: 0.9rem;
  line-height: 1.45;
}

.cookie-banner-actions {
  flex-shrink: 0;
}

.landing-shell {
  max-width: 1380px;
  margin: 0 auto;
}

.landing-screen {
  min-height: 0;
}

.landing-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.landing-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.landing-language-select {
  min-width: 74px;
  width: 74px;
  border-radius: 999px;
  border-color: rgba(17, 33, 54, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  font-weight: 700;
  font-size: 0.74rem;
  padding-left: 0.58rem;
  padding-right: 1.62rem;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.landing-logo {
  width: 74px;
  height: 74px;
}

.landing-brand-title {
  font-size: clamp(1.95rem, 3vw, 3.15rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  max-width: 20ch;
}

.landing-login-link,
.landing-back-link {
  min-width: 132px;
  border-radius: 999px;
}

.is-disabled-soon {
  position: relative;
  opacity: 0.58;
  cursor: not-allowed !important;
  pointer-events: auto;
  filter: grayscale(0.12);
}

.is-disabled-soon::after {
  content: attr(data-soon-label);
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%) translateY(-4px);
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: rgba(8, 17, 29, 0.96);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 14px 24px rgba(5, 10, 18, 0.28);
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 10;
}

.is-disabled-soon:hover::after,
.is-disabled-soon:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.landing-availability-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  max-width: min(720px, 100%);
  padding: 1rem 1.15rem 1.05rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 181, 46, 0.22), rgba(255, 255, 255, 0.04)),
    rgba(8, 14, 24, 0.88);
  box-shadow:
    0 22px 44px rgba(8, 14, 24, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.landing-availability-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffcf53 0%, #ff9f1c 100%);
  color: #261600;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 16px 26px rgba(255, 159, 28, 0.34);
}

.landing-availability-title {
  font-size: clamp(1.2rem, 2.6vw, 1.65rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff7da;
}

.landing-availability-text {
  max-width: 58ch;
  color: rgba(255, 249, 231, 0.88);
  font-size: 0.98rem;
  line-height: 1.55;
}

.landing-topbar-availability {
  flex: 1 1 320px;
  align-self: center;
  flex-direction: row;
  align-items: center;
  gap: 0.9rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  padding: 0.8rem 0.95rem;
  border-radius: 24px;
  border-color: rgba(255, 213, 121, 0.22);
  box-shadow:
    0 24px 42px rgba(4, 9, 17, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.landing-availability-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.landing-topbar-availability .landing-availability-pill {
  min-height: 42px;
  padding: 0.55rem 0.95rem;
  font-size: 0.92rem;
  box-shadow: 0 14px 22px rgba(255, 159, 28, 0.26);
}

.landing-topbar-availability .landing-availability-title {
  font-size: 1rem;
  color: #fff4cf;
}

.landing-topbar-availability .landing-availability-text {
  max-width: none;
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(255, 246, 219, 0.9);
}

.play-store-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 210px;
  max-width: 240px;
  text-decoration: none;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.play-store-badge:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 16px 24px rgba(4, 8, 15, 0.22));
}

.play-store-badge::after {
  content: attr(data-soon-label);
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%) translateY(-4px);
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: rgba(8, 17, 29, 0.92);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 14px 24px rgba(5, 10, 18, 0.28);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.play-store-badge:hover::after,
.play-store-badge:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.play-store-badge-image {
  display: block;
  width: 100%;
  height: auto;
}

.landing-hero-title {
  font-size: clamp(2.4rem, 5vw, 4.65rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: none;
  width: 100%;
}

.landing-copy {
  width: 100%;
  max-width: none;
}

.landing-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.landing-metric-card,
.landing-feature-card,
.landing-story-card,
.landing-update-card,
.landing-compare-card {
  border-radius: 26px;
}

.landing-metric-value {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.landing-feature-card,
.landing-story-card,
.landing-update-card,
.landing-compare-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(246,249,252,0.9));
}

.landing-section-lead {
  max-width: 46ch;
}

.landing-update-card {
  border: 1px solid rgba(17, 33, 54, 0.06);
}

.landing-compare-card {
  overflow: hidden;
}

.landing-compare-table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(15, 118, 110, 0.03);
  --bs-table-hover-bg: rgba(37, 99, 235, 0.04);
  margin-bottom: 0;
}

.landing-compare-table thead th {
  border-bottom: 1px solid rgba(17, 33, 54, 0.1);
  color: #5b6b7e;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.landing-compare-table tbody td {
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-color: rgba(17, 33, 54, 0.08);
  vertical-align: middle;
}

.landing-compare-table tbody td:first-child {
  min-width: 280px;
  color: var(--tb-ink);
  font-weight: 700;
}

.plan-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.plan-chip.is-yes {
  background: rgba(15, 118, 110, 0.12);
  border-color: rgba(15, 118, 110, 0.18);
  color: #0f766e;
}

.plan-chip.is-no {
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.22);
  color: #5b6b7e;
}

.plan-chip.is-beta {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.18);
  color: #1d4ed8;
}

.market-compare-table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(15, 118, 110, 0.025);
  --bs-table-hover-bg: rgba(37, 99, 235, 0.035);
  margin-bottom: 0;
}

.market-compare-table thead th {
  border-bottom: 1px solid rgba(17, 33, 54, 0.1);
  color: #5b6b7e;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.market-compare-table tbody td {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  border-color: rgba(17, 33, 54, 0.08);
  vertical-align: middle;
  font-size: 0.93rem;
}

.market-compare-table tbody td:first-child {
  min-width: 180px;
  color: var(--tb-ink);
  font-weight: 800;
}

.market-compare-table tbody td:not(:first-child) {
  min-width: 158px;
}

.market-compare-value {
  color: #4a5b70;
  line-height: 1.35;
  border-radius: 16px;
  padding: 0.72rem 0.8rem;
  min-height: 100%;
  border: 1px solid rgba(17, 33, 54, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.market-compare-value.is-yes {
  background: rgba(15, 118, 110, 0.11);
  border-color: rgba(15, 118, 110, 0.22);
  color: #0f766e;
  font-weight: 700;
}

.market-compare-value.is-no {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.16);
  color: #b42318;
}

.about-lead {
  max-width: 72ch;
  color: #516274;
  line-height: 1.65;
}

.about-section-title {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #102036;
}

.about-copy {
  color: #516274;
  line-height: 1.65;
  margin-bottom: 0;
}

.about-stack {
  display: grid;
  gap: 0.95rem;
}

.about-block,
.about-tech-card {
  border: 1px solid rgba(17, 33, 54, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246,249,252,0.92));
  padding: 1rem 1.05rem;
}

.about-block-title,
.about-tech-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #102036;
  margin-bottom: 0.55rem;
}

.about-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #556576;
  line-height: 1.6;
}

.about-list li + li {
  margin-top: 0.36rem;
}

.about-tech-grid,
.about-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.about-resource-card,
.about-link-row {
  display: block;
  border: 1px solid rgba(17, 33, 54, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,249,252,0.94));
  padding: 1rem 1.05rem;
  color: inherit;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.about-resource-card:hover,
.about-link-row:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.24);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.about-resource-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.about-resource-name,
.about-link-label {
  font-weight: 800;
  color: #102036;
}

.about-resource-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.2rem 0.58rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-resource-note,
.about-link-note {
  color: #556576;
  line-height: 1.55;
}

.about-resource-url,
.about-link-url {
  margin-top: 0.55rem;
  color: #0f766e;
  font-size: 0.82rem;
  word-break: break-word;
}

.about-link-list {
  display: grid;
  gap: 0.9rem;
}

.market-compare-value.is-partial {
  background: rgba(217, 119, 6, 0.09);
  border-color: rgba(217, 119, 6, 0.16);
  color: #b45309;
  font-weight: 700;
}

.market-compare-value.is-neutral {
  background: rgba(248, 250, 252, 0.96);
}

.market-compare-tripbill .market-compare-value {
  color: #102036;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(16, 32, 54, 0.06);
}

.market-compare-table th.market-compare-tripbill,
.market-compare-table td.market-compare-tripbill {
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(37, 99, 235, 0.035));
}

.market-compare-note {
  max-width: 980px;
  font-style: italic;
}

.landing-preview-carousel {
  overflow: hidden;
}

.landing-preview-track {
  position: relative;
  min-height: 560px;
}

.landing-preview-slide {
  display: none;
  animation: landingPreviewFade 0.45s ease;
}

.landing-preview-slide.is-active {
  display: block;
}

.landing-preview-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1rem;
}

.landing-preview-dot {
  width: 0.64rem;
  height: 0.64rem;
  border-radius: 999px;
  border: 0;
  background: rgba(17, 33, 54, 0.16);
  box-shadow: inset 0 0 0 1px rgba(17, 33, 54, 0.08);
  transition: transform 0.18s ease, background 0.18s ease;
}

.landing-preview-dot:hover {
  transform: scale(1.08);
  background: rgba(15, 118, 110, 0.32);
}

.landing-preview-dot.is-active {
  background: linear-gradient(135deg, #102036, #0f766e);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.16);
}

.screenshot-card {
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(244,248,251,0.92));
  min-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.screenshot-bar {
  display: flex;
  gap: 0.45rem;
}

.screenshot-bar span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: rgba(17, 33, 54, 0.18);
}

.screenshot-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6a7788;
  font-weight: 700;
}

.screenshot-panel {
  min-height: 98px;
  border-radius: 18px;
}

.screenshot-panel-dark {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.1), transparent 28%),
    linear-gradient(135deg, rgba(17,33,54,0.95), rgba(15,118,110,0.84));
}

.screenshot-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  flex: 1 1 auto;
  align-items: stretch;
}

.screenshot-mini-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(17,33,54,0.08);
  border-radius: 18px;
  padding: 0.7rem;
  min-height: 100%;
}

.screenshot-mini-cover {
  position: relative;
  height: 190px;
  border-radius: 14px;
  margin-bottom: 0.7rem;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-cover-usa {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.12), transparent 28%),
    linear-gradient(135deg, #102036 0%, #0f766e 55%, #f59e0b 100%);
}

.screenshot-cover-kenya {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.12), transparent 28%),
    linear-gradient(135deg, #12324b 0%, #0e7490 52%, #f97316 100%);
}

.screenshot-mini-cover-flag {
  position: relative;
  z-index: 1;
  font-size: 7.8rem;
  line-height: 1;
  filter: drop-shadow(0 10px 16px rgba(15, 23, 42, 0.36));
}

.screenshot-mini-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.08), rgba(15,23,42,0.42));
}

.screenshot-mini-cover-content {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.7rem;
  z-index: 2;
}

.screenshot-mini-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.screenshot-mini-meta {
  color: #6a7788;
  font-size: 0.82rem;
}

.screenshot-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1 1 auto;
}

.screenshot-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(17,33,54,0.08);
}

.screenshot-avatar {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #102036, #0f766e);
  color: white;
  font-weight: 800;
}

.screenshot-rate-chip {
  display: inline-flex;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(15,118,110,0.09);
  border: 1px solid rgba(15,118,110,0.16);
  margin: 0 0.45rem 0.45rem 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: #134e4a;
}

.screenshot-transactions-demo {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.screenshot-transactions-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.screenshot-action-primary,
.screenshot-action-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 0.95rem;
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.screenshot-action-primary {
  background: linear-gradient(135deg, #0f766e, #0b5d57);
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.24);
}

.screenshot-action-secondary {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 118, 110, 0.18);
  color: #0f4f4a;
}

.screenshot-transactions-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 0.85rem;
}

.screenshot-transactions-panel {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 33, 54, 0.08);
}

.screenshot-transactions-panel.is-muted {
  background: linear-gradient(180deg, rgba(246, 249, 252, 0.96), rgba(255, 255, 255, 0.94));
}

.screenshot-transactions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.screenshot-transactions-count {
  min-width: 1.85rem;
  height: 1.85rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
}

.screenshot-transaction-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(17, 33, 54, 0.08);
}

.screenshot-transaction-row:first-of-type {
  border-top: 0;
  padding-top: 0.15rem;
}

.screenshot-transaction-amounts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  text-align: right;
}

.screenshot-amount-secondary {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 700;
}

.screenshot-total-inline {
  margin-top: 0.6rem;
}

.screenshot-form-preview {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 33, 54, 0.08);
}

.screenshot-form-preview-head {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6a7788;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.screenshot-form-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.screenshot-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.68rem 0.75rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(244, 248, 251, 0.96), rgba(255, 255, 255, 0.94));
  border: 1px solid rgba(17, 33, 54, 0.08);
}

.screenshot-form-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6a7788;
  font-weight: 700;
}

.screenshot-form-value {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #112136;
}

.screenshot-transaction {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(17,33,54,0.08);
}

.screenshot-card .screenshot-card-grid,
.screenshot-card .screenshot-list {
  flex: 1 1 auto;
}

.screenshot-amount {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.landing-balance-demo {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.landing-balance-demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.landing-balance-demo-card {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(17, 33, 54, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.landing-balance-demo-card.is-creditor {
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.98), rgba(255, 255, 255, 0.94));
  border-color: rgba(22, 163, 74, 0.16);
}

.landing-balance-demo-card.is-debtor {
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.98), rgba(255, 255, 255, 0.94));
  border-color: rgba(220, 38, 38, 0.14);
}

.landing-balance-demo-party {
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.landing-balance-demo-value {
  margin-top: 0.28rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.landing-balance-demo-meta {
  margin-top: 0.22rem;
  font-size: 0.8rem;
  color: #6a7788;
}

.landing-balance-flow-list {
  display: grid;
  gap: 0.75rem;
}

.landing-balance-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(17, 33, 54, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(244,248,251,0.92));
}

.landing-balance-flow-from,
.landing-balance-flow-to {
  font-weight: 700;
}

.landing-balance-flow-arrow {
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f766e;
}

.landing-balance-flow-amount {
  font-weight: 800;
  letter-spacing: -0.03em;
}

@keyframes landingPreviewFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-hero {
  max-width: 900px;
  margin: 0 auto;
}

.hero {
  background:
    linear-gradient(135deg, rgba(17, 33, 54, 0.96), rgba(15, 118, 110, 0.90)),
    linear-gradient(160deg, rgba(37, 99, 235, 0.20), transparent 42%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  box-shadow: var(--tb-shadow);
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-connected-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.app-sidebar {
  position: sticky;
  top: 1rem;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 246, 249, 0.96));
  border: 1px solid rgba(17, 24, 39, 0.14);
  box-shadow:
    0 22px 42px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.app-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58);
}

.app-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.app-sidebar-logo {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.app-sidebar-avatar {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(229,236,243,0.94));
  border: 1px solid rgba(17, 33, 54, 0.08);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  background-size: cover;
  background-position: center;
  color: #23405e;
  font-size: 0.98rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.app-sidebar-avatar.has-image span {
  display: none;
}

.app-shell-nav,
.app-trip-context-nav,
.app-sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.app-shell-nav {
  margin-bottom: 1rem;
  padding: 0.72rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.app-shell-nav-link,
.app-shell-subnav-link {
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 1px solid rgba(17, 33, 54, 0.08);
  background: rgba(255, 255, 255, 0.78);
  color: var(--tb-ink);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.app-shell-nav-link:hover,
.app-shell-subnav-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.94);
}

.app-shell-nav-link.is-active,
.app-shell-subnav-link.is-active {
  background: linear-gradient(135deg, rgba(16, 32, 54, 0.98), rgba(15, 118, 110, 0.94));
  color: white;
  border-color: rgba(16, 32, 54, 0.18);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
}

.nav-profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(229,236,243,0.94));
  border: 1px solid rgba(17, 33, 54, 0.08);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  background-size: cover;
  background-position: center;
  color: #23405e;
  font-size: 0.78rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.nav-profile-avatar.has-image span {
  display: none;
}

.account-tier-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(17, 33, 54, 0.08);
  background: rgba(17, 33, 54, 0.06);
  color: var(--tb-ink);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  vertical-align: middle;
}

.account-tier-badge.is-standard {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(59, 130, 246, 0.14));
  border-color: rgba(37, 99, 235, 0.24);
  color: #1d4ed8;
  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.account-tier-badge.is-pro {
  background:
    linear-gradient(135deg, rgba(127, 29, 29, 0.98), rgba(153, 27, 27, 0.94) 58%, rgba(185, 28, 28, 0.92));
  border-color: rgba(248, 113, 113, 0.34);
  color: #fff1f2;
  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.app-trip-context {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(33, 86, 179, 0.24), rgba(72, 129, 229, 0.16));
  border: 1px solid rgba(33, 86, 179, 0.28);
  box-shadow: 0 18px 36px rgba(33, 86, 179, 0.18);
}

.app-trip-context-nav {
  margin-top: 0.9rem;
}

.app-trip-context-nav .app-shell-subnav-link {
  padding: 0.8rem 0.95rem;
  font-size: 0.94rem;
}

.app-trip-context-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
  color: #112136;
}

#appSidebarTripLabel {
  color: #1c4f9e !important;
  white-space: nowrap;
}

.app-trip-context-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem;
  margin-bottom: 0.42rem;
}

.app-trip-context-close {
  width: 1.72rem;
  height: 1.72rem;
  border: 1px solid rgba(28, 79, 158, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #1c4f9e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-top: -0.16rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(17, 33, 54, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.app-trip-context-close:hover,
.app-trip-context-close:focus-visible {
  border-color: rgba(28, 79, 158, 0.38);
  box-shadow: 0 10px 22px rgba(17, 33, 54, 0.12);
  transform: translateY(-1px);
}

#appSidebarTripDestination {
  font-size: 0.88rem;
  line-height: 1.3;
  margin-bottom: 0.35rem;
  color: #173f7a !important;
  font-weight: 700;
}

#appSidebarTripMeta {
  font-size: 0.82rem;
  line-height: 1.35;
  white-space: pre-line;
  color: #2d4a78 !important;
}

.app-sidebar-actions {
  margin-top: 1rem;
  padding: 0.72rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.app-connected-content {
  min-width: 0;
}

.app-view-section {
  display: block;
}

.trip-workspace-panel {
  display: block;
}

.trip-main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.72rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.26), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 246, 249, 0.95));
  border: 1px solid rgba(17, 24, 39, 0.12);
  box-shadow:
    0 18px 38px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.trip-main-nav .app-shell-subnav-link {
  width: auto;
  min-width: 7.4rem;
  text-align: center;
  gap: 0;
  justify-content: center;
}

.trip-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.trip-summary-stat {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(243, 246, 248, 0.92);
  border: 1px solid rgba(17, 33, 54, 0.06);
}

.trip-summary-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6a7788;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.trip-summary-value {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.trip-participant-chip {
  min-width: 0;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(243, 246, 248, 0.92);
  border: 1px solid rgba(17, 33, 54, 0.06);
}

#tripParticipantSummaryPanel {
  padding: 0.9rem 1rem !important;
}

#tripParticipantSummaryPanel .trip-summary-grid {
  gap: 0.7rem;
}

#tripParticipantSummaryPanel .trip-summary-stat {
  padding: 0.72rem 0.8rem;
  border-radius: 14px;
}

#tripParticipantSummaryPanel .trip-summary-label {
  font-size: 0.7rem;
  margin-bottom: 0.2rem;
}

#tripParticipantSummaryPanel .trip-summary-value {
  font-size: 1.15rem;
}

#tripParticipantSummaryPanel .trip-participant-chip {
  padding: 0.58rem 0.72rem;
  border-radius: 12px;
  font-size: 0.9rem;
}

#tripParticipantSummaryPanel .trip-participant-chip .small {
  font-size: 0.75rem;
}

.trip-stats-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.trip-stats-summary-card {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(243, 246, 248, 0.92);
  border: 1px solid rgba(17, 33, 54, 0.06);
}

.trip-stats-summary-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6a7788;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.trip-stats-summary-value {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.trip-stats-summary-hint {
  font-size: 0.82rem;
  color: #667085;
  margin-top: 0.4rem;
}

.stats-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.stats-breakdown-row {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(243, 246, 248, 0.92);
  border: 1px solid rgba(17, 33, 54, 0.06);
}

.stats-breakdown-head,
.stats-progress-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.stats-breakdown-label {
  min-width: 0;
  flex: 1 1 auto;
  font-weight: 700;
  color: #10243b;
}

.stats-breakdown-value {
  margin-top: 0.2rem;
  min-width: 0;
  font-size: 0.92rem;
  color: #475467;
  line-height: 1.15;
  text-align: right;
  white-space: normal;
}

.stats-breakdown-value-main {
  display: block;
  color: #475467;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.stats-breakdown-value-secondary,
.trip-stats-summary-secondary {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: #8a94a6;
  overflow-wrap: anywhere;
}

.stats-breakdown-progress,
.trip-budget-progress {
  margin-top: 0.45rem;
  height: 0.6rem;
  border-radius: 999px;
  background: rgba(17, 33, 54, 0.08);
}

.stats-breakdown-progress .progress-bar,
.trip-budget-progress .progress-bar {
  border-radius: 999px;
}

.stats-inline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.stats-inline-item {
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: rgba(243, 246, 248, 0.92);
  border: 1px solid rgba(17, 33, 54, 0.06);
}

.rate-chip {
  min-width: 0;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(243, 246, 248, 0.92);
  border: 1px solid rgba(17, 33, 54, 0.06);
}

.rate-chip-button {
  display: inline-block;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.rate-chip-button:hover,
.rate-chip-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(17, 33, 54, 0.16);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.98);
}

.tripbill-user-badge {
  background: linear-gradient(135deg, #102036, #0f766e);
  color: #ffffff;
  border: 1px solid rgba(16, 32, 54, 0.16);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.38rem;
  line-height: 1;
  vertical-align: middle;
}

.transaction-pagination {
  padding-top: 0.3rem;
  border-top: 1px solid rgba(17, 33, 54, 0.08);
}

.transaction-pagination-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.transaction-pagination-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.transaction-pagination-status {
  font-weight: 600;
}

.transaction-page-button,
.transaction-page-indicator {
  min-width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 33, 54, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: #102036;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
  font-weight: 800;
  line-height: 1;
}

.transaction-page-button {
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.transaction-page-button:hover,
.transaction-page-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(16, 32, 54, 0.2);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.1);
  background: #ffffff;
}

.transaction-page-button:disabled {
  opacity: 0.42;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.transaction-page-indicator {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(240, 244, 248, 0.98));
}

.rate-chip-pair {
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 0.24rem;
}

.rate-chip-value {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.rate-chip-meta {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: #667085;
}

.hero-logo {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  padding: 0.08rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 28px rgba(17, 33, 54, 0.18);
  flex: 0 0 auto;
}

.hero-logo-auth {
  width: 196px;
  height: 196px;
  border-radius: 40px;
  padding: 0.22rem;
}

.hero-brand-auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
  text-align: center;
}

.auth-hero {
  position: relative;
}

.auth-hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.35rem;
  width: 100%;
}

.auth-hero-logo-wrap {
  display: flex;
  justify-content: center;
}

.auth-hero-copy {
  max-width: 34rem;
}

.auth-create-account-button {
  min-width: 168px;
}

.hero-kicker {
  font-size: 1.05rem;
  letter-spacing: 0.16em;
}

.hero-copy-auth {
  max-width: 58rem;
  font-size: 1rem;
  line-height: 1.6;
}

.hero-auth-title {
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.glass-card {
  background: var(--tb-panel);
  border: 1px solid var(--tb-line);
  border-radius: 24px;
  box-shadow: var(--tb-shadow);
  backdrop-filter: blur(10px);
}

.glass-card-dark {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.metric-card {
  min-height: 144px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(242,247,250,0.92));
}

.metric-value {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.section-title {
  font-size: clamp(1.28rem, 1.6vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #112136;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease;
  text-decoration: none;
}

.quick-link:hover {
  transform: translateY(-1px);
}

.quick-link-button {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.quick-link-button:hover,
.quick-link-button.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.quick-link-dark {
  background: rgba(255, 255, 255, 0.72);
  color: var(--tb-ink);
  border: 1px solid rgba(17, 33, 54, 0.08);
}

.quick-link-dark:hover {
  background: white;
  color: var(--tb-ink);
}

.auth-link-stack {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
}

.auth-forgot-link {
  align-self: center;
  margin-top: 0.15rem;
  text-align: center;
}

.auth-text-link,
.auth-inline-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tb-accent-2);
  text-decoration: underline;
  font-weight: 500;
}

.auth-text-link:hover,
.auth-inline-link:hover {
  color: var(--tb-accent);
}

.editor-panel {
  border: 1px solid rgba(17, 33, 54, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(239, 243, 247, 0.96), rgba(247, 250, 252, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.account-avatar {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(229,236,243,0.94));
  border: 1px solid rgba(17, 33, 54, 0.08);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #23405e;
  background-size: cover;
  background-position: center;
}

.account-avatar.has-image span {
  display: none;
}

.account-preferences-tight-row .form-text {
  margin-top: 0.45rem;
}

.account-profile-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.35rem;
  padding-top: 0.4rem;
}

.account-profile-actions .btn {
  min-width: 12rem;
}

.transaction-launchers {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
}

.transaction-launchers-main,
.transaction-launchers-export {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.transaction-launchers-export {
  margin-left: auto;
}

.empty-state {
  border: 1px dashed rgba(17, 33, 54, 0.18);
  border-radius: 20px;
  padding: 1.5rem;
  color: #5b6b7e;
  background: rgba(255, 255, 255, 0.58);
}

.chip-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.catalog-toggle-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.catalog-toggle-item {
  display: inline-flex;
  flex-direction: column;
  gap: 0.45rem;
}

.catalog-toggle-actions {
  display: flex;
  justify-content: flex-end;
}

.catalog-toggle-chip {
  min-width: 190px;
  max-width: 100%;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
  padding: 0.82rem 0.95rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 33, 54, 0.08);
  color: var(--tb-ink);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.catalog-toggle-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 118, 110, 0.2);
}

.catalog-toggle-chip.is-active {
  background: linear-gradient(135deg, rgba(16, 32, 54, 0.98), rgba(15, 118, 110, 0.94));
  border-color: rgba(16, 32, 54, 0.2);
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.14);
}

.catalog-toggle-chip.is-active .catalog-toggle-meta {
  color: rgba(255, 255, 255, 0.78);
}

.catalog-toggle-chip.is-disabled,
.catalog-toggle-chip:disabled {
  background: rgba(242, 245, 248, 0.95);
  border-color: rgba(148, 163, 184, 0.24);
  color: #8a97a8;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.9;
}

.catalog-toggle-chip.is-disabled:hover,
.catalog-toggle-chip:disabled:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(148, 163, 184, 0.24);
}

.catalog-toggle-chip.is-disabled .catalog-toggle-meta,
.catalog-toggle-chip:disabled .catalog-toggle-meta {
  color: #98a5b5;
}

.catalog-toggle-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.catalog-toggle-meta {
  font-size: 0.78rem;
  color: #6a7788;
  font-weight: 600;
  text-align: left;
}

.chip-card {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 33, 54, 0.08);
  min-width: 180px;
}

.chip-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.expense-split-configurator {
  border: 1px solid rgba(17, 33, 54, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  padding: 1rem 1rem 0.9rem;
}

.expense-split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
}

.expense-split-field-card {
  border: 1px solid rgba(17, 33, 54, 0.08);
  border-radius: 16px;
  background: rgba(246, 249, 252, 0.92);
  padding: 0.85rem 0.9rem;
  min-height: 100%;
}

.expense-split-field-card .form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #415267;
  margin-bottom: 0.35rem;
}

.expense-split-field-card .small {
  color: #708093;
}

.family-balance-layout {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.family-balance-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}

.family-balance-card {
  padding: 1rem 1.05rem;
  border-radius: 20px;
  border: 1px solid rgba(17, 33, 54, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.family-balance-card.is-creditor {
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.98), rgba(255, 255, 255, 0.94));
  border-color: rgba(22, 163, 74, 0.16);
}

.family-balance-card.is-debtor {
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.98), rgba(255, 255, 255, 0.94));
  border-color: rgba(220, 38, 38, 0.14);
}

@media (max-width: 991.98px) {
  .app-connected-layout {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
  }

  .app-shell-nav,
  .app-trip-context-nav,
  .app-sidebar-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .app-shell-nav-link,
  .app-shell-subnav-link {
    width: auto;
  }

  .screenshot-transactions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .auth-hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-logo-auth {
    width: 152px;
    height: 152px;
    border-radius: 32px;
  }
}

.family-balance-label {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.family-balance-status {
  margin-top: 0.25rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #667085;
  font-weight: 700;
}

.family-balance-amount {
  margin-top: 0.45rem;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.family-balance-secondary {
  margin-top: 0.28rem;
  font-size: 0.82rem;
  color: #667085;
  font-weight: 600;
}

.family-settlement-panel {
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(17, 33, 54, 0.08);
  background: linear-gradient(180deg, rgba(245, 248, 251, 0.96), rgba(255, 255, 255, 0.92));
}

.family-settlement-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.family-settlement-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.family-settlement-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 180px) minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 33, 54, 0.08);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.family-settlement-node {
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(17, 33, 54, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.family-settlement-node.is-debtor {
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.98), rgba(255, 255, 255, 0.94));
}

.family-settlement-node.is-creditor {
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.98), rgba(255, 255, 255, 0.94));
}

.family-settlement-role {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #667085;
  font-weight: 700;
  margin-bottom: 0.18rem;
}

.family-settlement-name {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.family-settlement-node-amount {
  margin-top: 0.34rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.family-settlement-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.family-settlement-amount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.10);
  border: 1px solid rgba(15, 118, 110, 0.16);
  color: #134e4a;
  font-size: 0.92rem;
  font-weight: 800;
}

.family-settlement-arrow {
  position: relative;
  width: 100%;
  height: 12px;
}

.family-settlement-arrow::before {
  content: "";
  position: absolute;
  left: 0;
  right: 18px;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.24), rgba(15, 118, 110, 0.72));
}

.family-settlement-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%) rotate(45deg);
  border-top: 3px solid #0f766e;
  border-right: 3px solid #0f766e;
}

.trip-linked-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 1.55rem;
  padding: 0.2rem 0.58rem;
  border-radius: 999px;
  background: #e5e7eb;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.73rem;
  font-weight: 700;
  text-align: center;
}

.trip-linked-badge.is-accepted {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.trip-linked-badge.is-owner {
  background: #e0ecff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.trip-linked-badge.is-self {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.trip-card-role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.7rem;
  padding: 0.18rem 0.62rem;
  border-radius: 999px;
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.trip-card-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.7rem;
  padding: 0.18rem 0.62rem;
  border-radius: 999px;
  background: #e5e7eb;
  border: 1px solid #cbd5e1;
  color: #475467;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.trip-card-status-badge.is-ongoing {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.trip-card-status-badge.is-upcoming {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.trip-card-status-badge.is-completed {
  background: #e5e7eb;
  border-color: #cbd5e1;
  color: #475467;
}

.trip-list-divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0.55rem 0 0.15rem;
}

.trip-list-divider-line {
  flex: 1;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0), rgba(17, 24, 39, 0.34), rgba(17, 24, 39, 0));
}

.trip-list-divider-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.9rem;
  padding: 0.22rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 246, 248, 0.96));
  border: 1px solid rgba(17, 24, 39, 0.1);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  color: #344054;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.trip-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.trip-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 32px 56px rgba(15, 23, 42, 0.18);
  border-color: rgba(17, 24, 39, 0.34);
  outline: 1px solid rgba(17, 24, 39, 0.82);
  outline-offset: -1px;
}

.trip-card:focus-visible {
  outline: 0;
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.78), 0 32px 56px rgba(15, 23, 42, 0.18);
  border-color: rgba(17, 24, 39, 0.34);
}

.trip-card.active {
  border-color: rgba(15, 118, 110, 0.4);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.trip-card.is-completed {
  background: linear-gradient(180deg, rgba(247, 248, 250, 0.99), rgba(233, 236, 240, 0.98));
  border-color: rgba(148, 163, 184, 0.34);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.trip-card.is-completed .trip-card-cover {
  filter: grayscale(0.65) saturate(0.38) brightness(0.82);
}

.trip-card.is-completed .trip-card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(148, 163, 184, 0.22);
}

.trip-card.is-completed .trip-card-cover,
.trip-card.is-completed .trip-card-cover.no-cover {
  position: relative;
}

.trip-card.is-completed .trip-card-body {
  color: #667085;
  opacity: 0.9;
}

.trip-card.is-completed .text-secondary {
  color: #98a2b3 !important;
}

.trip-card.is-completed .trip-currency-badge,
.trip-card.is-completed .trip-card-delete-button,
.trip-card.is-completed .trip-card-role-badge,
.trip-card.is-completed .trip-card-status-badge {
  filter: saturate(0.72);
}

.trip-card-cover {
  height: 150px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #d9e7ef;
}

.trip-card-cover.no-cover,
.trip-cover-card.no-cover {
  background:
    linear-gradient(140deg, rgba(37,99,235,0.16), rgba(15,118,110,0.22)),
    linear-gradient(180deg, rgba(17,33,54,0.94), rgba(17,33,54,0.84));
}

.trip-card-body {
  padding: 1rem 1.1rem 1.1rem;
}

.trip-card-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.55rem;
}

.trip-card-delete-button {
  position: relative;
  z-index: 6;
  pointer-events: auto;
  width: 2.1rem;
  min-width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgba(220, 38, 38, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #b42318;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.trip-card-delete-button.is-leave {
  color: #175cd3;
  border-color: rgba(23, 92, 211, 0.18);
  background: rgba(255, 255, 255, 0.94);
}

.trip-card-delete-button:hover {
  background: rgba(254, 242, 242, 0.98);
  border-color: rgba(220, 38, 38, 0.26);
  box-shadow: 0 12px 20px rgba(220, 38, 38, 0.12);
  transform: translateY(-1px);
}

.trip-card-delete-button.is-leave:hover {
  background: rgba(239, 248, 255, 0.98);
  border-color: rgba(23, 92, 211, 0.28);
  box-shadow: 0 12px 20px rgba(23, 92, 211, 0.12);
}

.trip-card-action-icon {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.destination-preview-card {
  border: 1px solid rgba(17, 33, 54, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,251,0.96));
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.destination-preview-hero {
  position: relative;
  padding: 1.35rem 1.4rem 1.25rem;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.26), transparent 32%),
    linear-gradient(135deg, rgba(17, 33, 54, 0.96), rgba(15, 118, 110, 0.90));
  color: #fff;
}

.destination-preview-flag {
  width: 4rem;
  height: 4rem;
  min-width: 4rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.destination-preview-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  opacity: 0.72;
}

.destination-preview-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.destination-preview-subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.78);
}

.destination-preview-body {
  padding: 1.2rem 1.25rem 1.25rem;
}

.destination-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.destination-preview-panel {
  border-radius: 20px;
  border: 1px solid rgba(17, 33, 54, 0.08);
  background: rgba(247, 250, 252, 0.98);
  padding: 1rem;
  min-height: 100%;
}

.destination-preview-panel-title {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7785;
  font-weight: 800;
  margin-bottom: 0.7rem;
}

.destination-preview-list {
  display: grid;
  gap: 0.55rem;
}

.destination-preview-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.destination-preview-label {
  font-size: 0.82rem;
  color: #667085;
  font-weight: 700;
}

.destination-preview-value {
  font-size: 0.92rem;
  color: #112136;
  font-weight: 800;
  text-align: right;
}

.destination-preview-weather {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.destination-weather-chip {
  border-radius: 18px;
  padding: 0.9rem 0.8rem;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(17, 33, 54, 0.08);
  text-align: center;
}

.destination-weather-chip-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7785;
  font-weight: 800;
}

.destination-weather-chip-value {
  margin-top: 0.35rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #112136;
}

.destination-preview-note {
  margin-top: 0.9rem;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: rgba(15, 118, 110, 0.08);
  color: #24525f;
  font-size: 0.9rem;
  line-height: 1.45;
}

.destination-facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.destination-facts-card {
  border-radius: 20px;
  border: 1px solid rgba(17, 33, 54, 0.08);
  background: rgba(247, 250, 252, 0.98);
  padding: 1rem;
  min-height: 100%;
}

.destination-facts-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.85rem;
}

.destination-facts-country {
  font-size: 1.15rem;
  font-weight: 800;
  color: #112136;
}

.destination-facts-list {
  display: grid;
  gap: 0.65rem;
}

.destination-facts-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: baseline;
}

.destination-facts-label {
  color: #667085;
  font-size: 0.82rem;
  font-weight: 700;
}

.destination-facts-value {
  color: #112136;
  font-size: 0.92rem;
  font-weight: 800;
  text-align: right;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.22rem;
}

.destination-inline-link {
  border: 0;
  background: none;
  padding: 0;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.destination-weather-chip-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.destination-weather-chip-icon {
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.destination-facts-map-card {
  border-radius: 20px;
  border: 1px solid rgba(17, 33, 54, 0.08);
  background: rgba(247, 250, 252, 0.98);
  padding: 1rem;
}

.destination-facts-map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(220px, 0.92fr);
  gap: 1rem;
  align-items: start;
}

.destination-facts-side-stack {
  display: grid;
  gap: 0.9rem;
}

.destination-facts-side-card {
  border-radius: 18px;
  border: 1px solid rgba(17, 33, 54, 0.08);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.9rem 0.95rem;
}

.destination-facts-side-value {
  color: #112136;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.3;
}

.destination-facts-map-shell {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.34);
  background: linear-gradient(180deg, rgba(226, 236, 244, 0.96), rgba(241, 245, 249, 0.98));
  box-shadow: 0 34px 58px rgba(15, 23, 42, 0.22), 0 12px 24px rgba(15, 23, 42, 0.14);
}

.destination-facts-map-image {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #e8eef5;
}

.destination-facts-map-placeholder {
  min-height: 100%;
  display: grid;
  place-items: center;
  color: #6b7785;
  font-weight: 700;
}

#tripDestinationFactsToggle {
  min-width: 6.6rem;
}

#tripDetachConfirmModal.show {
  display: block;
  background: rgba(17, 33, 54, 0.38);
}

.trip-currency-badge {
  width: 2.45rem;
  min-width: 2.45rem;
  height: 2.45rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(17, 33, 54, 0.12);
  color: var(--tb-ink);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
  position: relative;
  cursor: default;
}

.trip-currency-badge::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.55rem);
  transform: translateX(-50%) translateY(4px);
  padding: 0.42rem 0.58rem;
  border-radius: 0.75rem;
  background: rgba(16, 32, 54, 0.96);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 4;
}

.trip-currency-badge::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.18rem);
  width: 0.6rem;
  height: 0.6rem;
  background: rgba(16, 32, 54, 0.96);
  transform: translateX(-50%) rotate(45deg) translateY(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 3;
}

.trip-currency-badge:hover::after,
.trip-currency-badge:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.trip-currency-badge:hover::before {
  transform: translateX(-50%) rotate(45deg) translateY(0);
}

.trip-cover-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  min-height: 240px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
}

.trip-cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trip-cover-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.68)),
    linear-gradient(135deg, rgba(17, 33, 54, 0.72), rgba(15, 118, 110, 0.54));
}

.trip-cover-content {
  z-index: 1;
}

.generated-flag-cover {
  position: relative;
  min-height: 220px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.12), transparent 34%),
    linear-gradient(135deg, #102036 0%, #0f766e 58%, #f59e0b 100%);
  box-shadow: 0 20px 42px rgba(17, 33, 54, 0.16);
  color: #fff;
}

.generated-flag-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.08), rgba(15,23,42,0.34));
}

.generated-flag-cover-content {
  position: relative;
  z-index: 1;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.4rem;
  padding: 1rem;
}

.generated-flag-cover-emoji {
  font-size: clamp(5.8rem, 10vw, 8.2rem);
  line-height: 1;
  filter: drop-shadow(0 18px 24px rgba(15, 23, 42, 0.32));
}

.generated-cover-preview-image {
  width: 100%;
  min-height: 220px;
  max-height: 260px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 20px 42px rgba(17, 33, 54, 0.16);
}

.invite-context-banner {
  border-radius: 22px;
  box-shadow: var(--tb-shadow);
  margin-bottom: 1rem;
}

.flash-host {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100vw - 2rem);
  max-width: 720px;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  pointer-events: none;
}

@media (max-width: 1199.98px) {
  .landing-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-preview-track {
    min-height: 600px;
  }
}

@media (max-width: 767.98px) {
  .landing-topbar,
  .landing-brand {
    align-items: flex-start;
  }

  .landing-topbar {
    flex-direction: column;
  }

  .landing-topbar-availability {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    align-self: stretch;
  }

  .landing-metric-grid {
    grid-template-columns: 1fr;
  }

  .about-tech-grid,
  .about-resource-grid {
    grid-template-columns: 1fr;
  }

  .landing-preview-track {
    min-height: 760px;
  }

  .landing-balance-demo-grid {
    grid-template-columns: 1fr;
  }

  .landing-balance-flow {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .landing-hero-title {
    max-width: none;
  }

  .landing-topbar-availability {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .landing-topbar-availability .landing-availability-pill {
    min-height: 44px;
    font-size: 0.98rem;
  }

  .trip-main-nav {
    width: 100%;
  }

  .trip-main-nav .app-shell-subnav-link {
    flex: 1 1 100%;
    min-width: 0;
  }

  .trip-summary-grid {
    grid-template-columns: 1fr;
  }

  .trip-stats-summary,
  .stats-inline-grid {
    grid-template-columns: 1fr;
  }

  .family-balance-summary {
    grid-template-columns: 1fr;
  }

  .family-settlement-card {
    grid-template-columns: 1fr;
  }

  .family-settlement-flow {
    order: 3;
  }

  .family-settlement-arrow {
    width: 100%;
    max-width: 180px;
  }
}

.flash-item {
  pointer-events: auto;
  width: 100%;
  box-shadow: var(--tb-shadow);
  text-align: center;
}

.mono {
  font-family: "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace;
}

.uppercase-input {
  text-transform: uppercase;
}

.table thead th {
  white-space: nowrap;
  color: #516074;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.table tbody td {
  vertical-align: middle;
}

.transaction-total-summary {
  margin-top: 0.75rem;
  display: flex;
  justify-content: flex-start;
}

.transaction-total-card {
  min-width: 230px;
  max-width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  text-align: left;
}

.transaction-total-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #516074;
  margin-bottom: 0.35rem;
}

.transaction-total-primary {
  font-size: 1rem;
  font-weight: 700;
  color: #112136;
}

.transaction-total-secondary {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.transaction-total-hint {
  margin-top: 0.55rem;
  max-width: 42rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #667085;
}

.trip-refresh-inline {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  width: 2.1rem;
  height: 2.1rem;
  line-height: 1;
  color: #111827;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.trip-refresh-inline-shell {
  position: relative;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 244, 246, 0.96));
  border: 1px solid rgba(17, 24, 39, 0.12);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.trip-refresh-inline-shell::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.trip-refresh-inline-icon {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #111827;
}

.trip-refresh-inline:hover {
  transform: translateY(-1px);
}

.trip-refresh-inline.is-pressed {
  transform: translateY(0) scale(0.96);
}

.trip-refresh-inline:hover .trip-refresh-inline-shell {
  border-color: rgba(17, 24, 39, 0.2);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.14);
}

.trip-refresh-inline:disabled {
  opacity: 0.72;
  cursor: wait;
}

.trip-refresh-inline.is-loading .trip-refresh-inline-shell {
  border-color: rgba(17, 24, 39, 0.22);
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.07), 0 14px 28px rgba(15, 23, 42, 0.16);
  animation: tripRefreshPulse 1s ease-in-out infinite;
}

.trip-refresh-inline.is-loading .trip-refresh-inline-icon {
  animation: tripRefreshSpin 0.8s linear infinite;
}

@keyframes tripRefreshSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes tripRefreshPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.trip-transaction-form .form-text {
  color: #64748b;
}

.media-viewer {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.media-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 28, 0.68);
  backdrop-filter: blur(8px);
}

.media-viewer-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100vw - 2rem));
  height: min(86vh, 920px);
  margin: 4vh auto 0;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(17, 33, 54, 0.08);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3);
  display: flex;
  flex-direction: column;
}

.media-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(17, 33, 54, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.media-viewer-toolbar {
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  color: #64748b;
  border-bottom: 1px solid rgba(17, 33, 54, 0.08);
}

.media-viewer-viewport {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.06), transparent 26%),
    linear-gradient(180deg, #0f172a, #111d30);
  cursor: default;
  touch-action: none;
  user-select: none;
}

.media-viewer-viewport.is-dragging {
  cursor: grabbing;
}

.media-viewer-image {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: none;
  max-height: none;
  transform-origin: center center;
  user-select: none;
  cursor: grab;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  border-radius: 18px;
}

.media-viewer-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

@media (max-width: 767.98px) {
  .destination-preview-grid {
    grid-template-columns: 1fr;
  }

  .destination-preview-weather {
    grid-template-columns: 1fr;
  }

  .destination-facts-grid,
  .destination-weather-chip-row,
  .destination-facts-map-grid {
    grid-template-columns: 1fr;
  }

  .media-viewer-dialog {
    width: calc(100vw - 1rem);
    height: 92vh;
    margin-top: 1vh;
    border-radius: 22px;
  }

  .media-viewer-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

.form-control,
.form-select {
  border-radius: 16px;
  border-color: rgba(17, 33, 54, 0.12);
}

.password-field {
  position: relative;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.85rem;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5b6b7e;
}

.password-toggle:hover {
  color: var(--tb-accent);
}

.password-toggle-icon {
  position: relative;
  width: 1.1rem;
  height: 0.72rem;
  border: 2px solid currentColor;
  border-radius: 0.8rem / 0.55rem;
  display: inline-block;
}

.password-toggle-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.password-toggle[aria-pressed="true"] .password-toggle-icon::after {
  content: "";
  position: absolute;
  top: -0.18rem;
  left: 50%;
  width: 2px;
  height: 1.1rem;
  background: currentColor;
  transform: translateX(-50%) rotate(42deg);
  transform-origin: center;
}

.btn {
  border-radius: 999px;
}

@media (max-width: 991.98px) {
  .metric-value {
    font-size: 1.9rem;
  }

  .family-settlement-panel {
    padding: 0.9rem;
  }
}

.modal-backdrop-custom {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 18, 34, 0.62);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop-custom__panel {
  width: min(720px, 100%);
  max-height: calc(100vh - 3rem);
  overflow: auto;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.modal-backdrop-custom__header,
.modal-backdrop-custom__footer {
  padding: 1rem 1.25rem;
}

.modal-backdrop-custom__header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.modal-backdrop-custom__body {
  padding: 1.25rem;
}

.modal-backdrop-custom__footer {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.power-plug-modal-panel {
  width: min(860px, 100%);
}

.power-plug-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}

.power-plug-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #fffdf8 0%, #f8fbff 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  padding: 1rem;
}

.power-plug-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.8rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: #e8f0ff;
  border: 1px solid #b9d0ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 800;
}

.power-plug-card__drawing {
  margin-top: 0.85rem;
}

.power-plug-card__drawing svg {
  display: block;
  width: 100%;
  height: auto;
}
