: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%);
}

.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;
}

.hero-logo {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  padding: 0.35rem;
  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: 92px;
  height: 92px;
  border-radius: 26px;
  padding: 0.45rem;
}

.hero-brand-auth {
  align-items: flex-start;
  gap: 1.2rem;
}

.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.75rem, 3vw, 2.45rem);
  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: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.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-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: rgba(255, 255, 255, 0.72);
}

.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;
}

.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;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.trip-card {
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.trip-card:hover {
  transform: translateY(-2px);
}

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

.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-actions {
  display: flex;
  gap: 0.5rem;
}

.trip-card-actions .btn {
  flex: 1;
}

.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-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;
}

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

.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;
}

.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;
  }
}
