.turnover-route {
  position: fixed;
  inset: 0;
  z-index: 150;
  width: 100%;
  overflow-x: hidden;
  background: var(--a9-bg, #242424);
  color: var(--a9-text, #f3f3f3);
}

.to-page {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: calc(var(--a9-bottom-h, 52px) + env(safe-area-inset-bottom, 0px) + 12px);
  background: var(--a9-bg, #242424);
  color: var(--a9-text, #f3f3f3);
  font-family: var(--a9-font, Manrope, "Noto Sans Bengali", system-ui, sans-serif);
}

.to-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 55px;
  background: var(--a9-bg-2, #1a1a1a);
}

.to-title {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
}

.to-close {
  position: absolute;
  right: 12px;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  transform: translateY(-50%);
}

.to-icon {
  width: 21px;
  height: 21px;
  display: block;
}

.to-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--a9-bg, #242424);
}

.to-tab {
  min-height: 48px;
  color: #8c8c8c !important;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent !important;
  border-radius: 0;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.ninet6-root .to-tab,
.to-tab {
  color: #8c8c8c !important;
}

.ninet6-root .to-tab.is-on,
.to-tab.is-on {
  color: var(--a9-gold, #f8bb25) !important;
  border-bottom: 2px solid var(--a9-gold, #f8bb25) !important;
  box-shadow: inset 0 -2px 0 var(--a9-gold, #f8bb25);
  font-weight: 600;
}

.to-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}

.to-ticket {
  overflow: hidden;
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.to-ticket-head {
  padding: 10px 12px 8px;
  background: linear-gradient(90deg, #f8bb25 0%, #e0a61a 100%);
  color: #1a1a1a;
}

.to-ticket-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.to-ticket-source {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.8;
}

.to-ticket-date {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
}

.to-ticket-body {
  padding: 12px;
}

.to-ticket-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.to-ticket-amount-label {
  display: block;
  color: #9d9d9d;
  font-size: 12px;
  margin-bottom: 4px;
}

.to-ticket-amount strong {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
}

.to-ticket-status {
  margin: 0;
  flex: 0 0 auto;
  color: var(--a9-gold, #f8bb25);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.to-ticket-status-completed {
  color: #9d9d9d;
}

.to-ticket-stat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 13px;
}

.to-ticket-stat span {
  color: #9d9d9d;
}

.to-ticket-stat strong {
  color: #f3f3f3;
  font-weight: 600;
}

.to-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.to-progress-track {
  flex: 1;
  height: 6px;
  overflow: hidden;
  background: #3a3a3a;
}

.to-progress-fill {
  height: 100%;
  background: var(--a9-gold, #f8bb25);
}

.to-progress-pct {
  min-width: 36px;
  color: var(--a9-gold, #f8bb25);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.to-ticket-completed-at {
  margin: 10px 0 0;
  color: #9d9d9d;
  font-size: 12px;
}

.to-empty,
.to-loading,
.to-error {
  margin: 0;
  padding: 48px 16px;
  color: #9d9d9d;
  text-align: center;
}

.to-error {
  color: #fda4af;
}

.to-empty-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 12px;
  display: block;
}

.to-more {
  display: block;
  width: calc(100% - 24px);
  margin: 0 12px 12px;
  min-height: 40px;
  color: #1a1a1a;
  background: var(--a9-gold, #f8bb25);
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.to-more:disabled {
  opacity: 0.55;
  cursor: default;
}

@media (min-width: 1024px) {
  .to-page {
    max-width: var(--a9-max, 1200px);
    margin: 0 auto;
  }

  .to-title {
    font-size: 20px;
  }
}
