/* =========================
   RESET & BASE
========================= */
* {
  box-sizing: border-box;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    sans-serif;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #0f172a, #020617);
  color: #e5e7eb;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.machine-graph {
  margin: 32px 0;
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 18px;
}

.machine-graph svg {
  user-select: none;
}

.machine-graph circle {
  transition:
    stroke 0.2s ease,
    opacity 0.2s ease;
}

.machine-graph circle:hover {
  filter: brightness(1.2);
}

/* =========================
   TOPBAR
========================= */
.topbar {
  height: 60px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
}

.logo {
  font-weight: 600;
  font-size: 16px;
}

.badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #1e293b;
}

/* =========================
   HERO LAYOUT
========================= */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.hero-content {
  max-width: 640px;
  width: 100%;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 12px;
}

.hero p {
  font-size: 16px;
  color: #94a3b8;
  margin-bottom: 28px;
}

/* =========================
   BUTTONS
========================= */
.btn {
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background-color: #2563eb;
  color: white;
}

.btn.primary {
  background: #2563eb;
  color: #fff;
}

.btn.primary:hover {
  background: #1d4ed8;
}

.btn.ghost {
  border: 1px solid #334155;
  color: #e5e7eb;
  background: transparent;
}

.btn.ghost:hover {
  background: #020617;
}

/* =========================
   FORMS (LOGIN / OTP)
========================= */
.form label {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 6px;
  text-align: left;
}

.form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid #1e293b;
  background: #020617;
  color: #e5e7eb;
  font-size: 15px;
  letter-spacing: 1px;
}

/* Error */
.error {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 14px;
}

/* =========================
   GATEWAYS & METHODS
========================= */
.gateway-card {
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 28px;
}

.gateway-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.gateway-header h2 {
  font-size: 20px;
  margin: 0;
}

/* =========================
   TABLES (METHODS / PAYMENTS)
========================= */
.table-card {
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 18px;
}

.methods-table,
.payments-table {
  width: 100%;
  border-collapse: collapse;
}

.methods-table th,
.payments-table th {
  text-align: left;
  font-size: 12px;
  color: #94a3b8;
  padding-bottom: 10px;
}

.methods-table td,
.payments-table td {
  padding: 14px 0;
  border-top: 1px solid #1e293b;
  font-size: 14px;
}

.methods-table tr:hover,
.payments-table tr:hover {
  background: rgba(15, 23, 42, 0.6);
}

/* =========================
   FILTER BAR
========================= */
.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.filters select,
.filters input {
  background: #020617;
  border: 1px solid #1e293b;
  color: #e5e7eb;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
}

/* =========================
   STATUS BADGES
========================= */
.status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.status.enabled {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.status.disabled {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.status.success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.status.pending {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
}

.status.failed {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* =========================
   UTILITIES
========================= */
.muted {
  font-size: 12px;
  color: #64748b;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.actions a {
  margin-right: 14px;
  font-size: 13px;
}

.actions .danger {
  color: #ef4444;
}

/* =========================
   FOOTER
========================= */
.footer {
  text-align: center;
  padding: 18px;
  font-size: 12px;
  color: #64748b;
}

/* =========================
   ANIMATION
========================= */
.animate-in {
  animation: fadeSlide 0.9s ease-out forwards;
}

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

/* ───────────────── Toolbar ───────────────── */
.payments-toolbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #1f2937;
  background: #020617;
}

/* ───────────────── Search Bar ───────────────── */
.search-bar {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-bar input {
  width: 320px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #374151;
  background: #020617;
  color: #fff;
  font-size: 13px;
}

.search-bar input::placeholder {
  color: #9ca3af;
}

.search-bar button {
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  background: #2563eb;
  color: white;
  font-size: 13px;
  cursor: pointer;
}

.search-bar button:hover {
  background: #1d4ed8;
}
