:root {
  --xbc-brand: rgba(49, 108, 114, 0.89);
  --xbc-brand-dark: rgba(49, 108, 114, 1);
  --xbc-brand-rgb: 49, 108, 114;
  --xbc-brand-on-dark-rgb: 167, 216, 211;
  --xbc-text: #172033;
  --xbc-muted: #667085;
  --xbc-line: #e4e7ec;
  --xbc-surface: #ffffff;
  --xbc-bg: rgb(245, 246, 251);
  --xbc-radius: 3px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body.xbc-static-landing,
body.xbc-landing-active {
  margin: 0;
  background: var(--xbc-bg);
  color: var(--xbc-text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.xbc-landing-active #app {
  display: none;
}

.xbc-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(37, 99, 235, .14), transparent 28rem),
    linear-gradient(180deg, #fff 0, var(--xbc-bg) 72%);
}

.xbc-container {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.xbc-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(228, 231, 236, .8);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(16px);
}

.xbc-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.xbc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--xbc-text);
  font-size: 18px;
  font-weight: 750;
  text-decoration: none;
}

.xbc-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.xbc-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.xbc-nav-links a {
  color: #344054;
  font-weight: 600;
  text-decoration: none;
}

.xbc-nav-links a:hover {
  color: var(--xbc-brand);
}

.xbc-button {
  min-height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}

.xbc-button-primary {
  border-color: var(--xbc-brand);
  background: var(--xbc-brand);
  color: #fff !important;
}

.xbc-button-primary:hover {
  background: var(--xbc-brand-dark);
}

.xbc-button-primary.is-steady:hover {
  background: var(--xbc-brand);
}

.xbc-button:disabled {
  cursor: not-allowed;
}

.xbc-button-secondary {
  border-color: var(--xbc-line);
  background: #fff;
  color: var(--xbc-text) !important;
}

.xbc-button-secondary:hover {
  background: #f5f6f8;
}

.xbc-button-link {
  min-height: auto;
  padding: 0;
  border: 0;
  color: var(--xbc-brand);
}

.xbc-button-link:hover {
  background: transparent;
  color: var(--xbc-brand-dark);
}

.xbc-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--xbc-line);
  border-radius: 12px;
  background: #fff;
  color: var(--xbc-text);
  font-size: 22px;
}

.xbc-hero {
  padding: 96px 0 68px;
  text-align: center;
}

.xbc-eyebrow {
  color: var(--xbc-brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.xbc-hero h1 {
  max-width: 920px;
  margin: 18px auto 20px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.xbc-hero p {
  max-width: 720px;
  margin: 0 auto 30px;
  color: var(--xbc-muted);
  font-size: clamp(16px, 2vw, 20px);
}

.xbc-section {
  padding: 54px 0;
}

.xbc-section-head {
  margin-bottom: 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.xbc-section h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
}

.xbc-section-note {
  color: var(--xbc-muted);
}

.xbc-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.xbc-carousel-dots {
  display: none;
}

.xbc-plan-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--xbc-line);
  border-radius: var(--xbc-radius);
  background: var(--xbc-surface);
  box-shadow: none;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.xbc-plan-card:hover {
  transform: none;
  border-color: rgba(var(--xbc-brand-rgb), .34);
}

.xbc-plan-card.is-sold-out {
  opacity: .72;
}

.xbc-plan-card-body {
  padding: 18px;
  flex: 1;
}

.xbc-plan-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.xbc-plan-meta {
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.xbc-pill {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(var(--xbc-brand-rgb), .1);
  color: var(--xbc-brand);
  font-size: 12px;
  font-weight: 700;
}

.xbc-pill.is-sold-out {
  background: #fef3f2;
  color: #b42318;
}

.xbc-price {
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 600;
}

.xbc-price small {
  color: var(--xbc-muted);
  font-size: 13px;
  font-weight: 500;
}

.xbc-plan-description {
  color: #475467;
  font-size: 14px;
}

.xbc-plan-description > :first-child {
  margin-top: 0;
}

.xbc-plan-description > :last-child {
  margin-bottom: 0;
}

.xbc-plan-action {
  padding: 0 18px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.xbc-plan-action .xbc-button {
  width: auto;
  flex: 0 0 auto;
}

.xbc-native-plan-action {
  display: flex !important;
  align-items: center;
  gap: 12px;
}

.xbc-native-plan-action > a,
.xbc-native-plan-action > button {
  flex: 0 0 auto;
}

.xbc-plan-side-info {
  margin-left: auto;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  text-align: right;
}

.xbc-plan-info-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(var(--xbc-brand-rgb), .18);
  border-radius: 999px;
  background: rgba(var(--xbc-brand-rgb), .08);
  color: var(--xbc-brand);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.xbc-dashboard-train-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.xbc-dashboard-train-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(var(--xbc-brand-rgb), .18);
  border-radius: 999px;
  background: rgba(var(--xbc-brand-rgb), .08);
  color: var(--xbc-brand);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.xbc-empty {
  grid-column: 1 / -1;
  padding: 36px;
  border: 1px dashed #cfd5df;
  border-radius: var(--xbc-radius);
  color: var(--xbc-muted);
  text-align: center;
}

.xbc-marketing {
  padding: 32px;
  border: 1px solid var(--xbc-line);
  border-radius: 24px;
  background: #101828;
  color: #fff;
}

.xbc-marketing h2 {
  color: #fff;
}

.xbc-marketing a {
  color: #93c5fd;
}

.xbc-footer {
  padding: 38px 0;
  color: var(--xbc-muted);
  text-align: center;
}

.xbc-admin-plan-grid {
  margin-top: 0;
  padding: 16px;
  border-radius: 3px;
  background: rgb(245, 246, 251);
}

.xbc-proxy-page {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  align-self: stretch;
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  background: rgb(245, 246, 251);
}

.xbc-proxy-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.xbc-proxy-notice {
  padding: 12px 14px;
  border: 1px solid #efeff5;
  border-radius: 8px;
  background: #fff;
}

.xbc-proxy-notice.is-error {
  border-color: #f2b8b5;
  background: #fff7f7;
  color: #b42318;
}

.xbc-proxy-notice.is-ok {
  border-color: #abefc6;
  background: #f6fef9;
  color: #067647;
}

.xbc-proxy-grid {
  display: grid;
  gap: 12px;
}

.xbc-proxy-panel {
  display: grid;
  gap: 12px;
}

.xbc-proxy-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.xbc-proxy-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.xbc-proxy-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #efeff5;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.xbc-proxy-card-body {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.xbc-proxy-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.xbc-proxy-card h2 {
  margin: 0;
  color: #1f2225;
  font-size: 17px;
  font-weight: 600;
}

.xbc-proxy-meta-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.xbc-proxy-meta-list span {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #f0f1f4;
  border-radius: 6px;
  background: #fafafc;
  color: #344054;
  font-size: 13px;
}

.xbc-proxy-meta-list strong {
  display: block;
  margin-bottom: 2px;
  color: #767c82;
  font-size: 12px;
  font-weight: 500;
}

.xbc-proxy-description {
  padding-top: 2px;
  color: #344054;
}

.xbc-proxy-description > :first-child {
  margin-top: 0;
}

.xbc-proxy-description > :last-child {
  margin-bottom: 0;
}

.xbc-page-note {
  padding: 9px 10px;
  border: 1px solid rgba(var(--xbc-brand-rgb), .18);
  border-radius: 6px;
  background: rgba(var(--xbc-brand-rgb), .07);
  color: #475467;
  font-size: 13px;
}

.xbc-proxy-price {
  color: #1f2225;
  font-size: 22px;
  font-weight: 600;
}

.xbc-proxy-price small {
  color: #767c82;
  font-size: 13px;
  font-weight: 500;
}

.xbc-proxy-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.xbc-proxy-field {
  flex: 1 1 130px;
  min-width: 130px;
}

.xbc-proxy-label {
  display: block;
  margin-bottom: 6px;
  color: #767c82;
  font-size: 12px;
}

.xbc-proxy-field select {
  width: 100%;
  min-height: 36px;
  padding: 0 34px 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #667085 50%) calc(100% - 17px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, #667085 50%, transparent 50%) calc(100% - 12px) 50% / 6px 6px no-repeat,
    #fff;
  color: #1f2225;
  font: inherit;
}

.xbc-proxy-field select:focus {
  border-color: rgba(var(--xbc-brand-rgb), .72);
  box-shadow: 0 0 0 2px rgba(var(--xbc-brand-rgb), .12);
  outline: 0;
}

.xbc-proxy-field select:disabled {
  background-color: #f5f5f5;
  color: #98a2b3;
  cursor: not-allowed;
}

.xbc-proxy-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.xbc-proxy-card-bottom .xbc-button {
  min-width: 116px;
}

.xbc-proxy-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #efeff5;
  border-radius: 8px;
  background: #fff;
}

.xbc-proxy-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.xbc-proxy-order-table {
  min-width: 680px;
}

.xbc-proxy-table th,
.xbc-proxy-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #efeff5;
  text-align: left;
  vertical-align: top;
}

.xbc-proxy-table th {
  background: #fafafc;
  color: #1f2225;
  font-size: 13px;
  font-weight: 500;
}

.xbc-proxy-table tr:last-child td {
  border-bottom: 0;
}

.xbc-order-no {
  display: block;
  color: var(--xbc-brand);
  font-weight: 500;
}

.xbc-proxy-table small {
  display: block;
  margin-top: 2px;
  color: #767c82;
  font-size: 12px;
  white-space: nowrap;
}

.xbc-order-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.xbc-order-status::before {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #f04438;
  content: "";
}

.xbc-order-status.is-ok::before {
  background: #18a058;
}

.xbc-order-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.xbc-button-link:disabled,
.xbc-order-empty-action {
  color: #98a2b3;
}

.xbc-toast {
  position: fixed;
  z-index: 10002;
  top: 72px;
  right: 18px;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid #efeff5;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  box-shadow: 0 16px 40px rgba(16, 24, 40, .18);
}

.xbc-toast.is-ok {
  border-color: #abefc6;
  background: #f6fef9;
  color: #067647;
}

.xbc-toast.is-error {
  border-color: #f2b8b5;
  background: #fff7f7;
  color: #b42318;
}

.xbc-proxy-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3f3f5;
  color: #4b4f54;
  font-size: 12px;
}

.xbc-proxy-badge.is-ok {
  background: rgba(24, 160, 88, .12);
  color: #18a058;
}

.xbc-proxy-badge.is-warn {
  background: rgba(76, 117, 134, .12);
  color: #3f6472;
}

.xbc-proxy-empty {
  grid-column: 1 / -1;
}

.xbc-proxy-panel[hidden] {
  display: none;
}

.xbc-modal-backdrop {
  position: fixed;
  z-index: 10000;
  inset: 0;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(16, 24, 40, .58);
}

.xbc-modal {
  width: min(480px, 100%);
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(16, 24, 40, .28);
}

.xbc-modal h2 {
  margin: 0 0 10px;
}

.xbc-modal p {
  margin: 0 0 22px;
  color: var(--xbc-muted);
}

.xbc-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 1080px) {
  .xbc-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .xbc-container {
    width: min(100% - 28px, 1240px);
  }

  .xbc-menu-button {
    display: inline-grid;
    place-items: center;
  }

  .xbc-nav-links {
    position: absolute;
    top: 64px;
    right: 14px;
    left: 14px;
    padding: 14px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    border: 1px solid var(--xbc-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(16, 24, 40, .14);
  }

  .xbc-nav-links.is-open {
    display: flex;
  }

  .xbc-nav-links a {
    padding: 10px 12px;
    border-radius: 9px;
  }

  .xbc-hero {
    padding: 68px 0 42px;
    text-align: left;
  }

  .xbc-hero h1,
  .xbc-hero p {
    margin-left: 0;
  }

  .xbc-plan-grid {
    width: calc(100vw - 14px);
    margin-right: -14px;
    padding: 4px 14px 18px 0;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .xbc-plan-grid::-webkit-scrollbar {
    display: none;
  }

  .xbc-carousel-dots {
    margin-top: 2px;
    display: flex;
    justify-content: center;
    gap: 7px;
  }

  .xbc-carousel-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #cbd5e1;
    transition: width .18s ease, background .18s ease;
  }

  .xbc-carousel-dot.is-active {
    width: 22px;
    background: var(--xbc-brand);
  }

  .xbc-plan-card {
    min-width: min(84vw, 340px);
    scroll-snap-align: start;
  }

  .xbc-admin-plan-grid {
    width: 100%;
    margin-right: 0;
    padding: 4px;
  }

  .xbc-proxy-page {
    padding: 4px;
  }

  .xbc-proxy-card-grid,
  .xbc-proxy-entry-grid {
    grid-template-columns: 1fr;
  }

  .xbc-proxy-meta-list {
    grid-template-columns: 1fr;
  }

  .xbc-proxy-card-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .xbc-proxy-card-bottom .xbc-button {
    width: 100%;
  }

  .xbc-proxy-table {
    min-width: 720px;
  }

  .xbc-proxy-order-table {
    min-width: 620px;
  }

  .xbc-modal-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

.xbc-modal-actions .xbc-button {
  width: 100%;
}
}

.xbc-confirm {
  position: fixed;
  z-index: 10001;
  inset: 0;
  padding: 18px;
  display: grid;
  place-items: center;
  background: rgba(16, 24, 40, .38);
}

.xbc-confirm-box {
  width: min(420px, 100%);
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(16, 24, 40, .2);
}

.xbc-confirm-box h2 {
  margin: 0 0 8px;
  color: #1f2225;
  font-size: 18px;
}

.xbc-confirm-box p {
  margin: 0 0 18px;
  color: #475467;
}

.xbc-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

html.dark .xbc-proxy-page {
  background: #101014;
  color: #d6d8dc;
}

html.dark .xbc-proxy-card,
html.dark .xbc-proxy-table-wrap,
html.dark .xbc-proxy-notice,
html.dark .xbc-confirm-box,
html.dark .xbc-toast {
  border-color: #2a2d33;
  background: #18181c;
  color: #d6d8dc;
}

html.dark .xbc-proxy-card h2,
html.dark .xbc-proxy-price,
html.dark .xbc-proxy-field select {
  color: #f2f4f7;
}

html.dark .xbc-proxy-meta-list span,
html.dark .xbc-proxy-table th {
  border-color: #2a2d33;
  background: #202126;
  color: #d6d8dc;
}

html.dark .xbc-proxy-table td {
  border-color: #2a2d33;
}

html.dark .xbc-proxy-meta-list strong,
html.dark .xbc-proxy-label,
html.dark .xbc-proxy-table small,
html.dark .xbc-confirm-box p {
  color: #9aa1ad;
}

html.dark .xbc-proxy-field select {
  border-color: #333741;
  background:
    linear-gradient(45deg, transparent 50%, #9aa1ad 50%) calc(100% - 17px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, #9aa1ad 50%, transparent 50%) calc(100% - 12px) 50% / 6px 6px no-repeat,
    #202126;
}

html.dark .xbc-button-secondary {
  border-color: #333741;
  background: #202126;
  color: #f2f4f7 !important;
}

html.dark .xbc-proxy-badge {
  background: #2a2d33;
  color: #d6d8dc;
}

html.dark .xbc-plan-info-badge,
html.dark .xbc-dashboard-train-badge {
  border-color: rgba(var(--xbc-brand-on-dark-rgb), .22);
  background: rgba(var(--xbc-brand-on-dark-rgb), .1);
  color: rgb(var(--xbc-brand-on-dark-rgb));
}

html.dark .xbc-page-note {
  border-color: rgba(96, 165, 250, .2);
  background: rgba(96, 165, 250, .08);
  color: #b8c3cf;
}

html.dark .xbc-confirm {
  background: rgba(0, 0, 0, .58);
}
