/* Platform: auth, dashboard, admin */
.auth-page {
  min-height: 100vh;
  background: var(--bg-2);
}

.auth-page__main {
  min-height: calc(100vh - 58px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
  padding: 6px 10px 6px 6px;
  margin-left: -6px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.auth-back:hover {
  color: var(--text);
  background: var(--bg-2);
}

.auth-logo { margin-bottom: 24px; }

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.auth-tab.active {
  background: var(--brand-dim);
  border-color: var(--brand);
  color: var(--brand);
}

.auth-panel { display: none; }
.auth-panel.active { display: block; }

.auth-panel h1 { font-size: 1.35rem; font-weight: 800; margin-bottom: 6px; }
.auth-sub { font-size: 13px; color: var(--text-3); margin-bottom: 20px; }

.auth-panel label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin: 12px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-2);
}

.auth-panel input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 4px;
}

.auth-panel input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-dim);
}

.password-field {
  position: relative;
  margin-bottom: 4px;
}

.password-field input {
  width: 100%;
  padding: 12px 44px 12px 14px;
  margin-bottom: 0;
}

.password-field__toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-3, #6b7280);
  cursor: pointer;
}

.password-field__toggle:hover {
  color: var(--text, #111827);
  background: rgba(15, 23, 42, 0.05);
}

.password-field__toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-dim);
  color: var(--brand);
}

.password-field__icon {
  display: block;
}

.auth-hint { font-size: 12px; color: var(--text-3); margin: 8px 0 16px; }
.auth-switch { font-size: 13px; text-align: center; margin-top: 16px; color: var(--text-2); }
.auth-switch a { color: var(--brand); font-weight: 700; }
.auth-msg { font-size: 13px; text-align: center; margin-top: 16px; min-height: 20px; color: var(--brand); }
.auth-msg--busy { color: var(--text-2); }

.btn.is-loading {
  pointer-events: none;
  cursor: wait;
  transform: none !important;
  box-shadow: none !important;
  opacity: 0.92;
}

.btn__spin {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-btn-spin 0.65s linear infinite;
  flex-shrink: 0;
}

.btn--outline.is-loading .btn__spin {
  border-color: rgba(0, 0, 0, 0.12);
  border-top-color: var(--brand);
}

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

.auth-blocked {
  margin-top: 4px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid #FECACA;
  background: #FEF2F2;
}

.auth-blocked.hidden { display: none; }

.auth-blocked__title {
  font-size: 14px;
  font-weight: 800;
  color: #991B1B;
  margin: 0 0 8px;
}

.auth-blocked__text {
  font-size: 13px;
  line-height: 1.5;
  color: #7F1D1D;
  margin: 0 0 12px;
}

.credit-badge {
  font-size: 12px;
  font-weight: 800;
  background: var(--brand-dim);
  color: var(--brand);
  padding: 6px 12px;
  border-radius: 999px;
  margin-right: 8px;
}

.admin-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  background: #0A0A0A;
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  margin-right: 8px;
}

.dash-wrap, .admin-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 28px 80px;
}

/* Dashboard top module tabs */
.dash-layout {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 28px 80px;
}

.dash-top {
  margin-bottom: 28px;
}

.dash-top__intro {
  margin-bottom: 20px;
}

.dash-top__intro h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.dash-module-nav {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
  padding: 6px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.04));
}

.dash-module-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: calc(var(--radius-xl) - 4px);
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.dash-module-tab:hover {
  background: rgba(255, 255, 255, 0.7);
}

.dash-module-tab.active {
  background: #fff;
  border-color: var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dash-module-tab__label {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-2);
  line-height: 1.2;
}

.dash-module-tab.active .dash-module-tab__label {
  color: var(--brand);
}

.dash-module-tab__balance {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  line-height: 1.2;
}

.dash-module-tab.active .dash-module-tab__balance {
  color: var(--text-2);
}

.dash-content {
  min-width: 0;
}

.dash-module-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.dash-module-desc {
  margin-bottom: 0;
}

.dash-module-panel { display: none; }
.dash-module-panel.active { display: block; }

.verify-panel--dash {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  padding: 4px;
}

.pricing-card--dash {
  max-width: 420px;
}

.admin-wrap--wide { max-width: 1100px; }

.dash-wrap h1, .admin-wrap h1, .dash-module-panel h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: 4px; }
.dash-greet { color: var(--text-2); margin-bottom: 0; }

.dash-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.dash-head__text {
  flex: 1;
  min-width: 0;
}

.dash-confirm {
  display: flex;
  align-items: stretch;
  gap: 14px;
  flex: 1;
  min-width: 0;
  max-width: 560px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.dash-confirm[hidden] {
  display: none !important;
}

.dash-confirm__photo {
  flex: 0 0 min(52%, 280px);
  min-width: 140px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #F1EFE9;
  aspect-ratio: 21 / 9;
  align-self: center;
}

.dash-confirm__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
  background: #fff;
}

.dash-confirm__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.dash-confirm__eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.dash-confirm__chassis {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  color: var(--text);
  letter-spacing: -0.02em;
}

.dash-confirm__vehicle {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.dash-confirm__hint {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-3);
}

.dash-confirm__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.dash-head--confirming .dash-head__text {
  display: none;
}

@media (max-width: 700px) {
  .dash-confirm {
    width: 100%;
    max-width: none;
    order: 3;
  }

  .dash-confirm__photo {
    flex: 0 0 42%;
    min-width: 110px;
  }

  .dash-confirm__chassis {
    font-size: 14px;
  }

  .dash-confirm__actions .btn {
    flex: 1 1 auto;
    min-height: 40px;
    padding: 10px 12px;
    font-size: 13px;
  }
}

.dash-section, .admin-section { margin-bottom: 40px; }
.dash-section h2, .admin-section h2 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.dash-sub { font-size: 14px; color: var(--text-3); margin-bottom: 16px; }

.balance-card {
  background: linear-gradient(135deg, var(--brand) 0%, #8B1018 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 28px;
  text-align: center;
}

.balance-card__num { font-size: 3rem; font-weight: 800; line-height: 1; }
.balance-card__label { font-size: 14px; opacity: 0.9; margin-top: 6px; }

.balance-card--compact {
  flex-shrink: 0;
  width: min(168px, 42vw);
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 8px 24px rgba(187, 24, 35, 0.22);
}

.balance-card--compact .balance-card__eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.88;
  margin-bottom: 6px;
}

.balance-card--compact .balance-card__num {
  font-size: 2.25rem;
}

.balance-card--compact .balance-card__label {
  font-size: 12px;
  margin-top: 4px;
}

.balance-card--low {
  background: linear-gradient(135deg, #9B1C24 0%, #BB1823 100%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2) inset;
}

.dash-topup-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #FECACA;
  border-radius: var(--radius-md);
  background: #FEF2F2;
}

.dash-topup-alert__text strong {
  display: block;
  color: #991B1B;
  font-size: 14px;
  margin-bottom: 4px;
}

.dash-topup-alert__text p {
  margin: 0;
  font-size: 13px;
  color: #7F1D1D;
  line-height: 1.45;
}

.dash-section--verify {
  margin-bottom: 40px;
}

.dash-verify-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.dash-verify-form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  margin-bottom: 10px;
}

.dash-verify-form input {
  width: 100%;
  padding: 18px 20px;
  border: 2px solid rgba(187, 24, 35, 0.35);
  border-radius: var(--radius-md);
  font-size: 20px;
  font-weight: 700;
  font-family: ui-monospace, Menlo, monospace;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.dash-verify-form input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-dim);
}

.dash-verify-form input::placeholder,
.taa-fields input::placeholder,
.auction-combobox__input::placeholder {
  color: #c4c9d2;
  font-weight: 500;
  opacity: 1;
}

/* Translate module — more compact fields */
#translateForm.dash-verify-form {
  padding: 14px 16px;
}

#translateForm label {
  font-size: 11px;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

#translateForm input,
#translateForm select.month-select {
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  border-width: 1.5px;
  margin-bottom: 6px;
  line-height: 1.45;
}

#translateForm input:focus,
#translateForm select.month-select:focus {
  box-shadow: 0 0 0 3px var(--brand-dim);
}

#translateForm .dash-verify-form__balance {
  font-size: 12px;
  line-height: 1.5;
  margin: 10px 0 12px;
  overflow: visible;
}

#translateForm .btn--lg {
  padding: 11px 18px;
  font-size: 14px;
}

/* Auction house searchable combobox */
.auction-combobox {
  position: relative;
  margin-bottom: 10px;
  z-index: 1;
}

.auction-combobox.is-open {
  z-index: 30;
}

.auction-combobox__field {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 0 10px 0 12px;
  border: 1.5px solid rgba(187, 24, 35, 0.28);
  border-radius: var(--radius-md, 10px);
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: text;
  overflow: visible;
}

.auction-combobox__field:hover {
  border-color: rgba(187, 24, 35, 0.45);
}

.auction-combobox__field.is-open,
.auction-combobox__field:focus-within {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px var(--brand-dim);
}

.auction-combobox__field.has-value {
  border-color: rgba(187, 24, 35, 0.4);
}

.auction-combobox__icon {
  flex-shrink: 0;
  color: var(--text-3, #98a2b3);
  transition: color 0.15s ease;
}

.auction-combobox__field.is-open .auction-combobox__icon,
.auction-combobox__field:focus-within .auction-combobox__icon {
  color: var(--brand);
}

#translateForm .auction-combobox__input,
.auction-combobox__input {
  flex: 1;
  min-width: 0;
  margin: 0 !important;
  padding: 10px 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  letter-spacing: normal !important;
  line-height: 1.45 !important;
  color: var(--text, #101828);
  outline: none !important;
  overflow: visible !important;
}

.auction-combobox__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.06);
  color: var(--text-2, #667085);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.auction-combobox__clear:hover {
  background: rgba(187, 24, 35, 0.12);
  color: var(--brand);
}

.auction-combobox__chevron {
  flex-shrink: 0;
  color: var(--text-3, #98a2b3);
  transition: transform 0.18s ease, color 0.15s ease;
}

.auction-combobox__field.is-open .auction-combobox__chevron {
  transform: rotate(180deg);
  color: var(--brand);
}

.auction-combobox__panel {
  position: absolute;
  z-index: 50;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  max-height: 260px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 4px 6px -1px rgba(16, 24, 40, 0.06),
    0 16px 32px -8px rgba(16, 24, 40, 0.16);
  overflow: hidden;
  animation: auctionPanelIn 0.14s ease-out;
}

.auction-combobox__panel[hidden],
.auction-combobox__clear[hidden],
.auction-combobox__empty[hidden] {
  display: none !important;
}

@keyframes auctionPanelIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auction-combobox__list {
  list-style: none;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  max-height: 248px;
}

.auction-combobox__option {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text, #101828);
  transition: background 0.1s ease, color 0.1s ease;
}

.auction-combobox__option.is-active,
.auction-combobox__option:hover {
  background: rgba(187, 24, 35, 0.08);
  color: var(--brand);
}

.auction-combobox__option.is-selected {
  background: rgba(187, 24, 35, 0.12);
  color: var(--brand);
}

.auction-combobox__option.is-selected::after {
  content: '✓';
  float: right;
  font-weight: 700;
  opacity: 0.85;
}

.auction-combobox__empty {
  margin: 0;
  padding: 18px 14px;
  font-size: 12px;
  color: var(--text-2, #667085);
  text-align: center;
}

.dash-verify-form__balance {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
  margin: 0 0 14px;
  overflow: visible;
}

.dash-verify-form__balance--low {
  color: #B45309;
  font-weight: 600;
}

.dash-verify-form__balance--empty {
  color: #991B1B;
  font-weight: 600;
}

.dash-verify-msg {
  margin-top: 12px;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
}

.dash-verify-msg--loading {
  background: #F8FAFC;
  color: var(--text-2);
  border: 1px solid var(--border);
}

.dash-verify-msg--error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.pkg-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  background: #fff;
  transition: border-color 0.15s;
}

.pkg-card:hover { border-color: var(--brand); }
.pkg-card__count { font-size: 2rem; font-weight: 800; color: var(--brand); }
.pkg-card__label { font-size: 13px; color: var(--text-2); margin: 4px 0 12px; }
.pkg-card__price { font-size: 1.25rem; font-weight: 800; margin-bottom: 12px; }

.hero-pkg-box--custom .hero-pkg-box__input,
.pkg-card--custom .hero-pkg-box__input {
  width: 100%;
  max-width: 132px;
  min-width: 108px;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--brand);
  text-align: center;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px 12px;
  line-height: 1.1;
  box-sizing: border-box;
  -moz-appearance: textfield;
}
.hero-pkg-box--custom .hero-pkg-box__input:focus,
.pkg-card--custom .hero-pkg-box__input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(187, 24, 35, 0.12);
}
.hero-pkg-box--custom .hero-pkg-box__input::-webkit-outer-spin-button,
.hero-pkg-box--custom .hero-pkg-box__input::-webkit-inner-spin-button,
.pkg-card--custom .hero-pkg-box__input::-webkit-outer-spin-button,
.pkg-card--custom .hero-pkg-box__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.hero-pkg-box__tier {
  font-size: 11px;
  line-height: 1.35;
  min-height: 28px;
  width: 100%;
}
.hero-pkg-box__unit-price {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
}
.hero-pkg-box__tier-range {
  display: block;
  font-size: 11px;
  color: var(--text-3);
}
.hero-pkg-box--custom {
  border-color: var(--brand);
}
.pkg-grid .hero-pkg-box--custom {
  grid-column: span 1;
}

.admin-subsection {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.admin-subsection h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.admin-tier-row {
  margin-bottom: 10px;
}
.admin-tier-label {
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
}

.report-list, .tx-list { display: flex; flex-direction: column; gap: 8px; }
.report-item, .tx-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
}

.report-item {
  flex-wrap: wrap;
}

.report-item a:not(.btn) { color: var(--brand); font-weight: 700; }

.report-item a.btn--primary,
.report-item .btn--primary {
  color: #fff !important;
  font-weight: 800;
}

.report-item__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.report-item__meta strong {
  font-size: 14px;
  line-height: 1.25;
}

.report-item__meta .muted {
  font-size: 12px;
  line-height: 1.3;
}

.report-item__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
  align-items: center;
}

.report-translate-panel {
  width: 100%;
  flex-basis: 100%;
  margin-top: 4px;
  padding: 14px 16px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.report-translate-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.report-item .btn-translate-status {
  opacity: 0.85;
  cursor: default;
}

/* Newest report only — draw attention until English translation is ready */
@keyframes translate-notice-pulse {
  0%, 100% {
    color: #b91c1c;
    border-color: #dc2626;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.35);
  }
  50% {
    color: #fff;
    border-color: #dc2626;
    background: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.18);
  }
}

.report-item .btn-translate-notice {
  color: #b91c1c;
  border-color: #dc2626;
  animation: translate-notice-pulse 4s ease-in-out infinite;
}

.report-item .btn-translate-notice:disabled {
  opacity: 1;
  cursor: default;
}

.report-item__link-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.report-url-box {
  display: none;
}

.tx-item .pos { color: #15803D; font-weight: 700; }
.tx-item .neg { color: var(--brand); font-weight: 700; }

.tx-item--month {
  align-items: flex-start;
}

.tx-item__details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tx-item__chassis {
  font-weight: 700;
  color: var(--text);
}

.tx-item__vehicle {
  font-size: 13px;
  color: var(--text-2);
}

.tx-item__prod {
  font-size: 13px;
  color: var(--text);
}

.tx-item__when {
  font-size: 12px;
  margin-top: 2px;
}

.dash-section--collapsible {
  padding-top: 0;
  padding-bottom: 0;
}

.dash-collapse-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 4px 0 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.dash-collapse-toggle:hover .dash-collapse-toggle__title {
  color: var(--brand);
}

.dash-collapse-toggle__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.dash-collapse-toggle__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  transition: color 0.15s;
}

.dash-collapse-toggle__sub {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.4;
}

.dash-collapse-toggle__arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-top: -4px;
}

.dash-collapse-toggle[aria-expanded="true"] .dash-collapse-toggle__arrow {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.dash-collapse-body {
  padding-bottom: 8px;
}

.product-category__head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.product-category__head h2 {
  margin: 0;
}

.product-category__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-category__tag--report {
  background: #FEE2E2;
  color: #991B1B;
}

.product-category__tag--month {
  background: #DBEAFE;
  color: #1E40AF;
}

.product-category__tag--translate {
  background: #DCFCE7;
  color: #166534;
}
.muted { color: var(--text-3); font-size: 14px; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.stat-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.stat-box__n { font-size: 1.5rem; font-weight: 800; color: var(--brand); }
.stat-box__l { font-size: 11px; color: var(--text-3); text-transform: uppercase; margin-top: 4px; }
.stat-box--api .stat-box__l { font-size: 10px; line-height: 1.3; }
.stat-box--low .stat-box__n { color: #c2410c; }
.stat-box--error .stat-box__n { color: #991b1b; }
.stat-box__hint { font-size: 10px; color: #991b1b; margin-top: 4px; }
.admin-stats__divider {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 4px 2px 0;
}

.provider-balance-card {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.provider-balance-card__main {
  min-width: 120px;
}

.provider-balance-card__value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}

.provider-balance-card__label {
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  margin-top: 6px;
  letter-spacing: 0.04em;
}

.provider-balance-card__meta {
  flex: 1;
  min-width: 200px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

.provider-balance-card--low .provider-balance-card__value {
  color: #B45309;
}

.provider-balance-card--error .provider-balance-card__value {
  color: #991B1B;
}

.access-code-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  max-width: 560px;
}

.access-code-card__label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.access-code-card__row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.access-code-card__input {
  flex: 1;
  min-width: 220px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.access-code-card__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.provider-test-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.provider-test-status--ok {
  background: #DCFCE7;
  color: #15803D;
}

.provider-test-status--fail {
  background: #FEE2E2;
  color: #B91C1C;
}

.provider-test-message {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.provider-test-message--ok {
  color: #15803D;
}

.provider-test-message--fail {
  color: #B91C1C;
}

.settings-form label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
}

.settings-form input[type="text"],
.settings-form input[type="number"] {
  display: block;
  width: 100%;
  max-width: 280px;
  margin-top: 4px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.admin-row input { padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); width: 120px; }

.admin-pkg-row {
  margin-bottom: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.pkg-reorder {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.btn-pkg-move {
  width: 32px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.btn-pkg-move:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-pkg-move:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.admin-table th, .admin-table td { padding: 12px; border: 1px solid var(--border); text-align: left; }
.admin-table th { background: var(--bg-2); font-weight: 700; font-size: 12px; text-transform: uppercase; }

.topup-modal .pkg-grid { margin-top: 16px; }

.checkout-back {
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  font-family: inherit;
}

.checkout-back:hover { color: var(--text); }

.checkout-selected {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 12px;
}

.checkout-gateways {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-gw {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.checkout-gw:hover {
  border-color: var(--brand);
  background: var(--brand-dim);
}

.checkout-gw:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-dim);
}

.checkout-gw.is-selected,
.checkout-gw:active {
  border-color: var(--brand);
  background: var(--brand-dim);
}

.checkout-gw__title {
  display: block;
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
}

.checkout-gw__sub {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
  line-height: 1.4;
}

.checkout-gw--loading {
  opacity: 0.65;
  pointer-events: none;
}

.checkout-loader-host {
  position: relative;
}

.checkout-loader {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(3px);
  border-radius: var(--radius-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}

.checkout-loader--visible {
  opacity: 1;
  visibility: visible;
}

.checkout-loader__card {
  text-align: center;
  padding: 20px 24px;
  max-width: 260px;
}

.checkout-loader__spinner {
  width: 42px;
  height: 42px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: checkout-spin 0.7s linear infinite;
}

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

.checkout-loader__title {
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 6px;
}

.checkout-loader__msg {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.45;
}

.bank-pay__lead { font-size: 14px; color: var(--text-2); margin-bottom: 12px; }

.bank-pay__row--copy .bank-pay__value {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  text-align: right;
}

.bank-pay__copy {
  flex-shrink: 0;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  cursor: pointer;
  font-family: inherit;
}

.bank-pay__copy:hover {
  background: var(--brand-dim);
  border-color: var(--brand);
}

.bank-pay__account + .bank-pay__account {
  margin-top: 8px;
}

.bank-pay__account--accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
}

.bank-pay__account--accordion + .bank-pay__account--accordion {
  margin-top: 8px;
  padding-top: 0;
  border-top: none;
}

.bank-pay__account-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.15s;
}

.bank-pay__account-toggle:hover,
.bank-pay__account-toggle[aria-expanded="true"] {
  background: var(--brand-dim);
}

.bank-pay__account-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.bank-pay__account-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-top: -4px;
}

.bank-pay__account-toggle[aria-expanded="true"] .bank-pay__account-chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.bank-pay__account-body {
  padding: 0 16px 12px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.bank-pay__account-body .bank-pay__row:first-child {
  padding-top: 10px;
}

.bank-pay__accounts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bank-pay__summary {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px solid var(--border);
}

.bank-pay__summary .bank-pay__row:first-child {
  padding-top: 0;
}

.bank-pay__account-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  margin-bottom: 8px;
}

.admin-bank-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-bank-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  background: #fff;
}

.admin-bank-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.admin-bank-card__status {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
}

.admin-bank-card__status--on { color: #16A34A; }

.admin-bank-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-bank-card__grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
}

.admin-bank-card__grid input {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
}

.admin-bank-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-bank-card__active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin-right: auto;
}

@media (max-width: 640px) {
  .admin-bank-card__grid { grid-template-columns: 1fr; }
}

.bank-pay__box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
}

.bank-pay__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.bank-pay__row:last-child { border-bottom: none; }

.bank-pay__row span { color: var(--text-3); }

.bank-pay__row--ref strong { color: var(--brand); }

.bank-pay__steps {
  margin: 0 0 16px;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-2);
}

.bank-pay__steps li { margin-bottom: 6px; }

.pay-result { text-align: center; }

.pay-result__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
}

.pay-result--paid .pay-result__icon { background: #DCFCE7; color: #166534; }
.pay-result--pending .pay-result__icon { background: #FEF3C7; color: #92400E; }
.pay-result__icon--pulse {
  animation: pay-result-pulse 1.4s ease-in-out infinite;
}

@keyframes pay-result-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.88; }
}
.pay-result--failed .pay-result__icon { background: #FEE2E2; color: #991B1B; }

.pay-result__icon--graphic {
  width: 64px;
  height: 64px;
  font-size: 0;
}

.pay-result__svg {
  width: 34px;
  height: 34px;
  display: block;
}

.pay-result__svg--failed {
  color: #991B1B;
}

.pay-result--paid .pay-result__svg {
  color: #166534;
}

.pay-result__download {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 0 0 14px;
  text-align: left;
}

.pay-result__download-label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3, #64748b);
}

.pay-result__download-chassis {
  margin: 0;
  font-size: 15px;
  color: var(--text);
}

.pay-result__delivery {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 0 0 16px;
  text-align: left;
}

.pay-result__delivery p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}

.pay-result__delivery--success {
  background: #F0FDF4;
  border-color: #BBF7D0;
}

.pay-result__delivery--success p:first-child {
  color: #166534;
  font-weight: 800;
  margin-bottom: 4px;
}

.pay-result__reason {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 0 0 14px;
  text-align: left;
}

.pay-result__reason-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #B91C1C;
  margin: 0 0 6px !important;
}

.pay-result__reason-text {
  font-size: 14px;
  font-weight: 600;
  color: #991B1B !important;
  margin: 0 !important;
  line-height: 1.45;
}

.pay-result--failed h1 {
  color: #991B1B;
}

.pay-result h1 { font-size: 1.35rem; margin-bottom: 8px; }

.pay-result p { font-size: 14px; color: var(--text-2); margin-bottom: 16px; }

.payment-result-card { max-width: 480px; }
.payment-result-card:has(.tr-result) { max-width: 720px; }

.payment-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.payment-status--paid { background: #DCFCE7; color: #166534; }
.payment-status--pending { background: #FEF3C7; color: #92400E; }
.payment-status--failed { background: #FEE2E2; color: #991B1B; }
.payment-status--expired { background: #F3F4F6; color: #6B7280; }

.backup-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.backup-summary__item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.backup-summary__item span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  margin-bottom: 4px;
}

.backup-summary__item strong {
  font-size: 14px;
  color: var(--text);
}

.backup-panel__actions {
  margin-bottom: 16px;
}

.backup-table-wrap {
  overflow-x: auto;
}

.backup-table th,
.backup-table td {
  white-space: nowrap;
}

.backup-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-payments-table .link-btn {
  background: none;
  border: none;
  color: var(--brand);
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  padding: 0 4px;
}

/* Admin tabs */
.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.admin-tab {
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-2);
  transition: all 0.15s;
}

.admin-tab:hover { border-color: var(--brand); color: var(--brand); }
.admin-tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.admin-tab-panel { display: none; }
.admin-tab-panel.active { display: block; }

/* Customer dashboard */
.customer-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.customer-section-head__text {
  flex: 1;
  min-width: 0;
}

.customer-section-head__text .dash-sub {
  margin-bottom: 0;
}

.customer-search {
  flex: 0 0 min(420px, 100%);
  width: min(420px, 100%);
}

.customer-search__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.customer-search__count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  white-space: nowrap;
}

.customer-search__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0;
}

.customer-search__field {
  position: relative;
  display: flex;
  align-items: center;
}

.customer-search__icon {
  position: absolute;
  left: 16px;
  color: var(--text-4);
  pointer-events: none;
}

.customer-search__clear {
  position: absolute;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--text-3);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.customer-search__clear:hover {
  background: var(--brand-dim);
  color: var(--brand);
}

.customer-search__input {
  width: 100%;
  min-height: 52px;
  padding: 14px 44px 14px 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 500;
  color: var(--text);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.customer-search__input::placeholder {
  color: #c4c9d2;
  font-weight: 500;
  opacity: 1;
}

.customer-search__input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-dim), 0 8px 24px rgba(15, 23, 42, 0.08);
}

.customer-dashboard {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  min-height: 420px;
}

.customer-list-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 560px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.customer-list { display: flex; flex-direction: column; flex: 1; min-height: 0; }

.customer-card__email {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 4px;
  word-break: break-all;
}

.customer-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: #fff;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

.customer-card:hover { background: var(--bg-2); }
.customer-card.active {
  background: var(--brand-dim);
  border-left: 3px solid var(--brand);
}

.customer-card__name { font-weight: 800; font-size: 14px; margin-bottom: 2px; }
.customer-card__contact { font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.customer-card__meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.customer-card__credits { color: var(--brand); }
.customer-card__reports { color: var(--text-3); }

.customer-detail {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-height: 320px;
}

.customer-detail__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.customer-detail__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.customer-detail__head h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 4px; }
.customer-detail__contact { font-size: 14px; color: var(--text-2); }
.customer-detail__joined { font-size: 12px; color: var(--text-3); margin-top: 4px; }

.customer-detail__balance {
  text-align: center;
  background: var(--brand-dim);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  min-width: 100px;
}

.customer-detail__balance-num { font-size: 2rem; font-weight: 800; color: var(--brand); line-height: 1; }
.customer-detail__balance-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; margin-top: 4px; }

.customer-detail__actions { margin-bottom: 24px; }

.customer-email-tools {
  margin-bottom: 20px;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid #fde68a;
  background: #fffbeb;
}

.customer-email-tools__warn {
  margin: 0 0 10px;
  font-size: 13px;
  color: #92400e;
  line-height: 1.45;
}

.customer-email-tools__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-email-tools__msg {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 600;
}

.add-credits-panel {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
}

.add-credits-panel__title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
}

.add-credits-panel__sub {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 12px;
}

.credit-mode-toggle {
  display: inline-flex;
  gap: 0;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.credit-mode-btn {
  border: none;
  background: transparent;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  cursor: pointer;
}

.credit-mode-btn.active {
  background: var(--brand-dim);
  color: var(--brand);
}

.add-credits-panel--remove .credit-mode-btn.active {
  background: #FEF2F2;
  color: #991B1B;
}

.btn--danger {
  background: #991B1B;
  color: #fff;
  border: 1px solid #991B1B;
}

.btn--danger:hover {
  background: #7f1616;
  border-color: #7f1616;
}

.add-credits-panel__quick {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.add-credits-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.add-credits-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 100px;
}

.add-credits-form__field--grow {
  flex: 1;
  min-width: 160px;
}

.add-credits-form__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.add-credits-form input[type="number"],
.add-credits-form input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
}

.add-credits-form button[type="submit"] {
  white-space: nowrap;
  flex-shrink: 0;
}

.add-credits-panel__msg {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
}

.add-credits-panel__msg--ok { color: #15803D; }
.add-credits-panel__msg--error { color: #991B1B; }
.customer-detail__section-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  margin: 20px 0 10px;
}

.customer-reports, .customer-txs { display: flex; flex-direction: column; gap: 8px; }

.report-link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-2);
  flex-wrap: wrap;
}

.report-link-row__info { display: flex; flex-direction: column; gap: 2px; }
.report-link-row__date { font-size: 12px; color: var(--text-3); }
.report-link-row__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.report-link-cell { white-space: nowrap; }
.report-link-cell a { color: var(--brand); font-weight: 700; margin-right: 8px; }

.link-btn {
  background: none;
  border: none;
  color: var(--text-2);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin-right: 8px;
  text-decoration: underline;
}

.link-btn:hover { color: var(--brand); }

/* Server monitor (admin) — VPS dashboard */
.admin-section--flush { padding-top: 0; }

.srv-dashboard { display: flex; flex-direction: column; gap: 16px; }

.srv-hero {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.srv-hero__main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 16px;
  background: linear-gradient(135deg, #0f172a 0%, #0c1222 45%, #0e3a4a 100%);
  color: #fff;
}

.srv-hero__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(167, 243, 208, 0.95);
}

.srv-hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.85);
  animation: serverPulse 2s infinite;
}

.srv-hero__host {
  margin: 8px 0 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.srv-hero__meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(203, 213, 225, 0.95);
}

.srv-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: none;
}

.srv-auto-refresh {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(203, 213, 225, 0.95);
  cursor: pointer;
}

.srv-auto-refresh input { accent-color: #34d399; }

.srv-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
}

.srv-refresh-btn:hover { background: rgba(255, 255, 255, 0.16) !important; }

.srv-refresh-icon {
  width: 14px;
  height: 14px;
}

.srv-refresh-btn.is-loading .srv-refresh-icon,
#btnRefreshServer.is-loading .srv-refresh-icon {
  animation: srvSpin 0.8s linear infinite;
}

@keyframes srvSpin {
  to { transform: rotate(360deg); }
}

.srv-hero__checked {
  margin: 0;
  padding: 10px 20px;
  font-size: 12px;
  color: var(--text-3);
  border-top: 1px solid var(--border);
  background: #fff;
}

.srv-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.srv-metric-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.srv-metric-card--warn {
  border-color: #fde68a;
  background: #fffbeb;
}

.srv-metric-card__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--text-2);
}

.srv-metric-card__icon svg {
  width: 18px;
  height: 18px;
}

.srv-metric-card__label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

.srv-metric-card__value {
  margin-top: 4px;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.srv-metric-card__sub {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.35;
}

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

.srv-detail-card {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.srv-detail-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
}

.srv-detail-card__title svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.srv-detail-card__text {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text);
}

.srv-detail-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-3);
}

.srv-bar { margin-bottom: 12px; }

.srv-bar__head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.srv-bar__detail {
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
}

.srv-bar__track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg-2);
}

.srv-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.srv-bar-fill--ok { background: #10b981; }
.srv-bar-fill--warn { background: #f59e0b; }
.srv-bar-fill--danger { background: #ef4444; }
.srv-bar-fill--sky { background: #0ea5e9; }

.srv-load-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
}

.srv-load-grid div {
  padding: 8px;
  text-align: center;
  border-radius: var(--radius);
  background: var(--bg-2);
}

.srv-load-grid dt {
  font-size: 10px;
  color: var(--text-3);
  font-weight: 600;
}

.srv-load-grid dd {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.srv-gpu-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-2);
  font-size: 13px;
}

.srv-gpu-box p { margin: 0; }

.srv-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.srv-alert {
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #78350f;
  font-size: 13px;
}

.srv-alert ul {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 12px;
}

.srv-network {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
}

.srv-network__title {
  margin: 0;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}

.srv-network__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.srv-network__list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.srv-network__list li:last-child { border-bottom: none; }

.server-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.admin-pkg-row--hidden {
  opacity: 0.72;
  background: var(--bg-2);
}

.admin-pkg-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 999px;
  padding: 3px 8px;
}

.admin-pkg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.server-status-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.server-status-banner--online {
  background: #F0FDF4;
  border-color: #BBF7D0;
}

.server-status-banner__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5);
  animation: serverPulse 2s infinite;
}

@keyframes serverPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
}

.server-status-banner__meta {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 600;
}

.server-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.server-metric-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
}

.server-metric-card__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
}

.server-metric-card__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-top: 6px;
  line-height: 1;
}

.server-metric-card__sub {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 6px;
}

.server-section-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  margin: 24px 0 10px;
}

.server-usage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.server-usage-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}

.server-usage-item span {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 600;
}

.server-usage-item strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.server-event-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-3);
  color: var(--text-2);
}

.server-event-tag--downtime { background: #FEF2F2; color: #991B1B; }
.server-event-tag--server_start { background: #F0FDF4; color: #15803D; }
.server-event-tag--server_stop { background: #FFF7ED; color: #C2410C; }

tr.server-event--down td { background: #FEF2F2; }

@media (max-width: 900px) {
  .srv-metrics-row,
  .srv-detail-grid,
  .server-metrics-grid,
  .server-usage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .srv-hero__actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .srv-metrics-row,
  .srv-detail-grid,
  .server-metrics-grid,
  .server-usage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dash-wrap, .admin-wrap { padding: 24px 16px 60px; }
  .dash-layout {
    padding: 24px 16px 60px;
  }
  .dash-module-nav {
    gap: 6px;
    padding: 5px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .dash-module-tab {
    flex: 1 0 140px;
    padding: 12px 10px;
  }
  .dash-module-tab__label {
    font-size: 13px;
  }
  .customer-dashboard { grid-template-columns: 1fr; }
  .customer-list-wrap { max-height: 240px; }
}

/* Guest single-report result + checkout wizard */
.found-result {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  background: #fff;
}

.found-result__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.found-result__label {
  display: block;
  font-size: 12px;
  color: var(--text-3);
}

.found-result__chassis {
  font-family: ui-monospace, monospace;
  font-size: 14px;
}

.found-result__new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 2px solid var(--brand);
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 0 3px rgba(187, 24, 35, 0.08);
}

.found-result__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #16A34A;
  background: #DCFCE7;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 12px;
  animation: found-badge-blink 1.6s ease-in-out infinite;
}

.found-result__vehicle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.found-result__vehicle-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.found-result__vehicle h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #1e3a5f;
}

.found-result__specs {
  margin: 0 0 14px;
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.found-result__spec {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.found-result__spec:last-child { border-bottom: none; }

.found-result__spec dt {
  margin: 0;
  color: var(--text-3);
  font-weight: 500;
}

.found-result__spec dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.found-result .btn--accidents { margin-bottom: 8px; }

.btn--whatsapp {
  background: #25D366;
  color: #fff;
  border: none;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn--whatsapp:hover {
  background: #1ebe5d;
  color: #fff;
}

.found-result__trust {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--text-3);
  text-align: center;
  line-height: 1.4;
}

/* guest checkout modal sizing in style.css */

.guest-checkout__chassis {
  margin: 4px 0 0;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  color: var(--text-2);
}

.guest-wizard__steps {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.guest-wizard__step {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
}

.guest-wizard__step span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0 auto 4px;
  border-radius: 50%;
  border: 2px solid var(--border);
  font-size: 12px;
  font-weight: 800;
  background: #fff;
}

.guest-wizard__step--active { color: var(--brand); }
.guest-wizard__step--active span {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.guest-wizard__step--done { color: #16A34A; }
.guest-wizard__step--done span {
  border-color: #16A34A;
  background: #16A34A;
  color: #fff;
}

.guest-wizard__lead {
  font-size: 14px;
  color: var(--text-2);
  margin: 0 0 14px;
}

.guest-order-summary {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.guest-order-summary--compact { margin-bottom: 12px; }

.guest-order-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding: 4px 0;
}

.guest-order-summary__row--total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-weight: 800;
}

.guest-order-summary__row--total strong { color: var(--brand); }

.guest-details-form .form-field {
  display: block;
  margin-bottom: 12px;
}

.guest-details-form .form-field span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-2);
}

.guest-details-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
}

.guest-wizard__panel.hidden { display: none; }

/* Month Check / Translate module buttons in header */
.nav__monthcheck {
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav__monthcheck.is-selected {
  border-color: var(--brand);
  color: var(--brand);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--brand);
}

.nav__monthcheck.is-selected:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-dim, #FEF2F2);
}

/* Translate public page — fit first viewport */
.hero--translate {
  padding: 28px 28px 32px;
}

.hero--translate .hero__left {
  padding-top: 0;
  max-width: 560px;
}

.hero--translate .hero__badge {
  margin-bottom: 8px;
}

.hero--translate h1 {
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  line-height: 1.15;
  margin-bottom: 6px;
}

.hero--translate .hero__sub {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 14px;
}

.hero--translate .verify-panel__head {
  padding: 10px 14px;
}

.hero--translate .verify-panel__body {
  padding: 12px 14px 14px;
}

.translate-public-form label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-3);
  margin: 0 0 5px;
}

.translate-public-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

.translate-public-form__field {
  min-width: 0;
}

.translate-public-form input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: normal;
  border: 1.5px solid rgba(187, 24, 35, 0.28);
  border-radius: var(--radius-md, 10px);
  margin-bottom: 0;
  line-height: 1.45;
}

.translate-public-form input[type="text"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-dim);
}

.translate-public-form input::placeholder {
  color: #c4c9d2;
  font-weight: 500;
  opacity: 1;
}

.translate-public-form .auction-combobox {
  margin-bottom: 10px;
}

.translate-public-form .auction-combobox__field {
  min-height: 40px;
}

.translate-public-form .btn--search {
  margin-top: 2px;
  padding: 11px 16px;
  font-size: 14px;
}

@media (max-width: 560px) {
  .hero--translate {
    padding: 20px 16px 24px;
  }

  .translate-public-form__row {
    grid-template-columns: 1fr;
  }
}

.translate-pricing-sub {
  max-width: none;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .translate-pricing-sub {
    white-space: normal;
    max-width: 36em;
  }
}

/* Translate result — use full panel width, multi-column sections */
.hero--translate.hero--translate-result .hero__left {
  max-width: 920px;
}

.tr-result {
  margin-top: 4px;
}

.tr-result__details {
  display: block;
  margin: 10px 0 12px;
  padding: 8px 12px 10px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
}

.tr-result__details-main {
  flex: 1;
  min-width: 0;
}

.tr-result__section-title {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand, #BB1823);
}

.tr-result__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tr-result__stat {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.tr-result__stat-k {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3, #6b7280);
  margin-bottom: 4px;
}

.tr-result__stat-v {
  font-size: 15px;
  font-weight: 800;
  color: var(--text, #111827);
  line-height: 1.25;
  word-break: break-word;
}

.tr-result__seal {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.tr-result__stamp-svg {
  display: block;
  width: 108px;
  height: 62px;
}

.tr-result__sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin: 0 0 4px;
}

.tr-result__group {
  padding: 10px 12px;
  background: var(--surface-2, #f1f2f4);
  border-radius: 8px;
  min-width: 0;
}

.tr-result__group h4 {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text, #111827);
}

.tr-result__group ul {
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-2, #374151);
}

.tr-result__group li {
  margin: 2px 0;
}

#btnTranslatePdf,
#btnDashTranslatePdf {
  margin-top: 12px;
}

.tx-item--translate {
  align-items: flex-start;
}

.tx-item--translate .tx-item__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .tr-result__details {
    flex-direction: column;
  }

  .tr-result__stats {
    grid-template-columns: 1fr;
  }

  .tr-result__sections {
    grid-template-columns: 1fr;
  }

  .tr-result__seal {
    justify-content: flex-start;
  }
}

/* Month Check — manufacture date highlight */
.month-date-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 12px 0 4px;
  padding: 14px 16px;
  background: var(--brand-dim);
  border: 1px solid var(--brand);
  border-radius: var(--radius-md, 10px);
}

.month-date-box__label {
  font-size: 11px;
  font-weight: 800;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.month-date-box__value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.pay-result__month-date {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 14px 0;
  padding: 14px 16px;
  background: var(--brand-dim);
  border: 1px solid var(--brand);
  border-radius: var(--radius-md, 10px);
  text-align: left;
}

.pay-result__month-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pay-result__month-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.month-pay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 12px;
  padding: 12px 14px;
  background: var(--brand-dim);
  border: 1px solid var(--brand);
  border-radius: var(--radius-md, 10px);
  font-size: 14px;
  font-weight: 600;
}

.month-pay-row strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand);
}

.month-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border, #d5d8de);
  border-radius: var(--radius-md, 10px);
  font-size: 15px;
  background: #fff;
  color: var(--text);
}

/* Month Check — instant result fields (after redeeming a credit) */
.month-result-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 4px;
}

.month-result-field {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  background: var(--surface-2, #f1f2f4);
  border-radius: 8px;
}

.month-result-field__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted, #6b7280);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.month-result-field__value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
}

#btnMonthPdf {
  margin-top: 14px;
}

/* Month Check — bulk credit tiers (logged-in) */
.mc-packages__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.mc-pkg-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 18px;
  background: #fff;
  border: 1px solid var(--border, #d5d8de);
  border-radius: var(--radius-md, 12px);
  text-align: center;
}

.mc-pkg-card__count {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.mc-pkg-card__price {
  font-size: 24px;
  font-weight: 800;
  color: var(--brand);
}

.mc-pkg-card__per {
  font-size: 12px;
  color: var(--muted, #6b7280);
  margin-bottom: 8px;
}

/* Admin — customer month-check balance + tags */
.customer-detail__balance-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.customer-detail__balance--month .customer-detail__balance-num { color: #059669; }

.customer-card__credits--month { color: #059669; }

.tx-tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

.tx-tag--month { background: #d1fae5; color: #065f46; }

/* Month Check — PDF render host */
.month-pdf-host {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
  width: 440px;
  pointer-events: none;
  visibility: hidden;
  background: #fff;
}

.month-pdf-host.month-pdf-host--capture {
  z-index: 2147483646;
  visibility: visible;
  pointer-events: none;
}

.month-pdf {
  width: 440px;
  padding: 20px 22px 18px;
  background: #fff;
  color: #111827;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  box-sizing: border-box;
}

.month-pdf--sheet {
  padding: 18px 20px 16px;
}

.month-pdf__head { text-align: center; margin-bottom: 14px; }

.month-pdf__brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.month-pdf__brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #BB1823;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.month-pdf__brand-name { font-weight: 800; font-size: 15px; color: #BB1823; }

.month-pdf__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
}

.month-pdf__sub {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 11px;
}

.month-pdf__hero {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 2px solid #BB1823;
  border-radius: 10px;
  background: #fef2f2;
  text-align: center;
}

.month-pdf__hero-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #BB1823;
}

.month-pdf__hero-value {
  margin-top: 2px;
  font-size: 22px;
  font-weight: 800;
  color: #111827;
}

.month-pdf__meta {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 11px;
}

.month-pdf__meta div {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  background: #f3f4f6;
  border-radius: 6px;
}

.month-pdf__meta span { color: #6b7280; font-weight: 600; flex-shrink: 0; }
.month-pdf__meta strong {
  color: #111827;
  text-align: right;
  word-break: break-word;
  max-width: 62%;
}

.month-pdf__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
  font-size: 11px;
}

.month-pdf__table td {
  padding: 7px 10px;
  border-bottom: 1px solid #e5e7eb;
}

.month-pdf__label {
  width: 42%;
  color: #6b7280;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.03em;
}

.month-pdf__value {
  font-weight: 700;
  color: #111827;
}

.month-pdf__seal-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0 22px;
  padding: 10px 0;
  min-height: 54px;
}

.month-pdf__stamp {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 6px 14px 5px;
  border: 3px solid #c92832;
  border-radius: 12px;
  color: #c92832;
  transform: rotate(-13deg);
  transform-origin: center center;
  background: #fff;
  isolation: isolate;
  flex-shrink: 0;
}

.month-pdf__stamp::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: screen;
  background-image:
    radial-gradient(circle at 8% 18%, rgba(255,255,255,0.95) 0 0.6px, transparent 0.7px),
    radial-gradient(circle at 22% 72%, rgba(255,255,255,0.9) 0 0.5px, transparent 0.65px),
    radial-gradient(circle at 38% 34%, rgba(255,255,255,0.85) 0 0.55px, transparent 0.7px),
    radial-gradient(circle at 55% 82%, rgba(255,255,255,0.92) 0 0.6px, transparent 0.75px),
    radial-gradient(circle at 68% 22%, rgba(255,255,255,0.88) 0 0.5px, transparent 0.65px),
    radial-gradient(circle at 82% 58%, rgba(255,255,255,0.9) 0 0.55px, transparent 0.7px),
    radial-gradient(circle at 92% 28%, rgba(255,255,255,0.86) 0 0.5px, transparent 0.65px),
    radial-gradient(circle at 15% 48%, rgba(255,255,255,0.88) 0 0.45px, transparent 0.6px),
    radial-gradient(circle at 48% 12%, rgba(255,255,255,0.9) 0 0.5px, transparent 0.65px),
    radial-gradient(circle at 74% 88%, rgba(255,255,255,0.85) 0 0.55px, transparent 0.7px);
}

.month-pdf__stamp-line {
  position: relative;
  z-index: 1;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', 'Arial Black', sans-serif;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.month-pdf__seal-svg {
  display: none;
}

.month-pdf__foot {
  margin: 0;
  padding-top: 2px;
  text-align: center;
  font-size: 9px;
  color: #9ca3af;
  line-height: 1.4;
}

.month-pdf--sheet .month-pdf__head { margin-bottom: 12px; }
.month-pdf--sheet .month-pdf__hero { margin-bottom: 12px; padding: 10px 12px; }
.month-pdf--sheet .month-pdf__hero-value { font-size: 22px; }
.month-pdf--sheet .month-pdf__meta { margin-bottom: 10px; gap: 6px; }
.month-pdf--sheet .month-pdf__meta div { padding: 8px 10px; }
.month-pdf--sheet .month-pdf__table { margin-bottom: 10px; }
.month-pdf--sheet .month-pdf__table td { padding: 6px 9px; }
.month-pdf--sheet .month-pdf__foot { font-size: 9px; margin-top: 0; }

/* Currency toggle (homepage nav) */
.currency-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--surface-2, #f1f2f4);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.currency-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--text-2, #555);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.currency-toggle__btn .currency-toggle__flag {
  font-size: 13px;
}

.currency-toggle__btn.is-active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.currency-toggle--drawer {
  align-self: flex-start;
  margin-bottom: 12px;
}

/* Preselected / recommended gateway */
.checkout-gw--default {
  border-color: var(--brand);
}

.checkout-gw__badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-dim);
  padding: 2px 7px;
  border-radius: 999px;
}

/* Admin: payment gateways */
.admin-subhead {
  margin: 22px 0 4px;
  font-size: 15px;
  font-weight: 800;
}

.gw-toggles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 6px;
}

.gw-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 10px);
}

.gw-card .gw-toggle {
  padding: 0;
  border: 0;
}

.gw-name {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 8px);
  font: inherit;
  font-size: 13px;
}

.gw-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 10px);
  cursor: pointer;
}

.gw-toggle input {
  width: 18px;
  height: 18px;
  flex: none;
}

.gw-toggle span {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.gw-toggle small {
  color: var(--text-3, #888);
  font-size: 12px;
}

.taa-match-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.taa-match-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 10px);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.taa-match-card:hover {
  border-color: var(--red, #BB1823);
  box-shadow: 0 2px 8px rgba(187, 24, 35, 0.08);
}

.taa-match-card__label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-1, #111);
}

.taa-match-card__id {
  font-size: 12px;
}

.taa-fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
}

.taa-fields input {
  font-weight: 400;
}

