:root {
  color-scheme: dark;
}

body {
  background-color: #090d16;
  color: #e5e7eb;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html[lang="ar"] body {
  font-family: "Cairo", "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
}

.glass-card {
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid rgba(55, 65, 81, 0.6);
  backdrop-filter: blur(10px);
}

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

/* Keep numbers, phone numbers, prices, payment codes, and wallet addresses strictly LTR even in Arabic RTL */
.ltr-isolate {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Automatic RTL table alignment fixes */
html[dir="rtl"] table th,
html[dir="rtl"] table td {
  text-align: right;
}

html[dir="rtl"] .rtl-end {
  text-align: left !important;
}

html[dir="ltr"] .rtl-end {
  text-align: right !important;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0b1120;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

.toast-enter {
  animation: slideIn 0.2s ease-out forwards;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.qr-preview-box {
  background: #ffffff;
  padding: 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
