.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

.page-my-wallet .topbar::before {
  display: none !important;
}

.topbar--wallet {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(200px, 1.4fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
}

.topbar--wallet .page-title {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.topbar-center {
  display: flex;
  justify-content: center;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.wallet-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.wallet-search-ico {
  color: var(--muted);
  display: flex;
}

.wallet-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  background: transparent;
  color: var(--text);
}

.wallet-search-input::placeholder {
  color: #94a3b8;
}

.topbar-right--wallet {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.wallet-user-block {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
}

.wallet-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-700), #6366f1);
  flex-shrink: 0;
}

.wallet-user-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.wallet-user-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.wallet-user-id {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.wallet-logout-compact {
  padding: 8px 12px;
  font-size: 0.75rem;
}

.content.content--wallet {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  padding: 8px 24px 40px;
}

.wallet-status {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-700);
  margin-bottom: 12px;
  min-height: 1.25em;
}

.wallet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.wallet-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.wallet-card--balance {
  background: linear-gradient(160deg, #fafbff 0%, #ffffff 50%);
  position: relative;
  overflow: hidden;
  min-height: 260px;
}

.wallet-balance-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.wallet-pill {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

.wallet-pill--ok {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.wallet-pill--warn {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.wallet-ico-watermark {
  color: #cbd5e1;
  opacity: 0.85;
}

.wallet-balance-value {
  font-size: clamp(2.2rem, 4.5vw, 2.85rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--primary-700);
  line-height: 1.05;
  margin-bottom: 6px;
}

.wallet-balance-updated {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 20px;
}

.wallet-mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.wallet-mini {
  border-radius: 12px;
  padding: 12px 14px;
}

.wallet-mini--reserved {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
}

.wallet-mini--spent {
  background: #f8fafc;
  border: 1px solid var(--border);
}

.wallet-mini-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
}

.wallet-mini--reserved .wallet-mini-label {
  color: #4338ca;
}

.wallet-mini-value {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text);
}

.wallet-mini--reserved .wallet-mini-value {
  color: #312e81;
}

.wallet-min-note {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.wallet-min-note.wallet-min-note--low {
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 10px 12px;
}

.wallet-min-note a {
  color: var(--primary-700);
  font-weight: 800;
}

.wallet-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--text);
}

.wallet-title-ico {
  display: flex;
  color: var(--primary-700);
}

.wallet-field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}

.wallet-presets {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.wallet-preset {
  flex: 1;
  padding: 12px 10px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.wallet-preset.is-active {
  border-color: var(--primary-700);
  background: var(--primary-soft);
  color: var(--primary-700);
}

.wallet-field {
  display: block;
  margin-bottom: 14px;
}

.wallet-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.wallet-input-prefix {
  padding: 12px 14px;
  font-weight: 800;
  color: var(--muted);
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
}

.wallet-input {
  flex: 1;
  border: none;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  outline: none;
}

.wallet-topup-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.wallet-topup-card-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
}

.wallet-topup-card-opt:has(input:checked) {
  border-color: var(--primary-700);
  background: var(--primary-soft);
}

.wallet-topup-card-opt input {
  accent-color: var(--primary-700);
}

.wallet-btn-topup {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary-700), #6366f1);
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.32);
}

.wallet-btn-topup--sm {
  width: auto;
  padding: 10px 18px;
}

.wallet-btn-topup:hover {
  filter: brightness(1.05);
}

.wallet-btn-topup:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.wallet-inline-error {
  margin-top: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #b91c1c;
}

.wallet-col-pay {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wallet-methods-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.wallet-methods-head .wallet-card-title {
  margin-bottom: 0;
}

.wallet-link-btn {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary-700);
  cursor: pointer;
  padding: 0;
}

.wallet-card-hero {
  border-radius: 14px;
  padding: 18px 20px;
  min-height: 120px;
  margin-bottom: 14px;
  color: #fff;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.35);
}

.wallet-card-hero--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  box-shadow: none;
  border: 1px dashed #cbd5e1;
  color: var(--text);
}

.wallet-card-hero-empty-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
}

.wallet-card-hero-empty-text {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  max-width: 240px;
  line-height: 1.45;
}

.wallet-pay-empty {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
  background: #fafbff;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.45;
  list-style: none;
}

.wallet-pay-empty strong {
  color: var(--primary-700);
  font-weight: 800;
}

.wallet-topup-cards-empty {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.45;
}

.wallet-btn-topup:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.wallet-card-hero--visa::before {
  content: "VISA";
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  opacity: 0.9;
}

.wallet-card-hero--mastercard::before {
  content: "MC";
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 0.95rem;
  font-weight: 900;
  opacity: 0.9;
}

.wallet-card-hero-chip {
  width: 36px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  margin-bottom: 28px;
}

.wallet-card-hero-number {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.wallet-card-hero-foot {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.92;
}

.wallet-card-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wallet-card-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}

.wallet-card-list-item.is-selected {
  border-color: var(--primary-700);
  background: var(--primary-soft);
}

.wallet-card-list-item input {
  accent-color: var(--primary-700);
}

.wallet-card-list-brand {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: capitalize;
  min-width: 72px;
}

.wallet-card-list-mask {
  flex: 1;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
}

.wallet-add-card-dashed {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 2px dashed #cbd5e1;
  background: #fafbff;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--primary-700);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.wallet-add-card-dashed:hover {
  background: var(--primary-soft);
  border-color: var(--primary-700);
}

.wallet-secure-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.28);
}

.wallet-secure-banner p {
  margin: 6px 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  opacity: 0.95;
}

.wallet-secure-ico {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.wallet-card--tx {
  grid-column: 1 / -1;
}

.wallet-tx-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.wallet-tx-head .wallet-card-title {
  margin-bottom: 0;
}

.wallet-tx-actions {
  display: flex;
  gap: 8px;
}

.wallet-ghost-btn {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
}

.wallet-ghost-btn:hover {
  background: var(--bg-soft);
}

.wallet-ghost-btn.is-active {
  border-color: var(--primary-700);
  color: var(--primary-700);
  background: var(--primary-soft);
}

.wallet-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.wallet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.wallet-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  background: #fafbff;
  border-bottom: 1px solid var(--border);
}

.wallet-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  vertical-align: middle;
}

.wallet-table tbody tr:last-child td {
  border-bottom: none;
}

.wallet-table tbody tr:hover td {
  background: rgba(79, 70, 229, 0.03);
}

.wallet-cat {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wallet-cat--topup {
  background: #dcfce7;
  color: #166534;
}

.wallet-cat--booking {
  background: #dbeafe;
  color: #1d4ed8;
}

.wallet-cat--refund {
  background: #ede9fe;
  color: #5b21b6;
}

.wallet-cat--fine {
  background: #fee2e2;
  color: #b91c1c;
}

.wallet-amt--pos {
  color: #047857;
  font-weight: 800;
}

.wallet-amt--neg {
  color: #dc2626;
  font-weight: 800;
}

.wallet-tx-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.wallet-tx-foot {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.wallet-tx-pager {
  display: flex;
  gap: 6px;
}

.wallet-tx-pager button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  font-family: inherit;
  cursor: pointer;
  color: var(--muted);
}

.wallet-tx-pager button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.wallet-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.wallet-filter-bar.hidden {
  display: none !important;
}

.wallet-filter-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.wallet-filter-chip.is-active {
  background: var(--primary-700);
  border-color: var(--primary-700);
  color: #fff;
}

.wallet-dialog {
  border: none;
  border-radius: 16px;
  padding: 0;
  max-width: 400px;
  width: calc(100% - 32px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
}

.wallet-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.wallet-dialog-inner {
  padding: 24px;
}

.wallet-dialog-title {
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.wallet-dialog-lead {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.wallet-select,
.wallet-input-full {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0;
}

.wallet-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 1024px) {
  .topbar--wallet {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .topbar-center {
    max-width: none;
  }

  .wallet-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wallet-user-block {
    display: none;
  }

  .wallet-logout-compact {
    display: none;
  }
}
