:root {
  --bg: #0f172a;
  --card: #111827;
  --accent: #f59e0b;
  --accent-2: #38bdf8;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #1f2937;
  --success: #22c55e;
  --danger: #ef4444;
  --radius: 14px;
  --shadow: 0 15px 50px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.65)),
    /* radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.08), transparent 25%), */
    /* radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.12), transparent 28%), */
    url('https://images.unsplash.com/photo-1622088805871-0235e38d7aca?w=900&auto=format&fit=crop&q=50&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTh8fGJhcmlzdGElMjBjb2ZmZWV8ZW58MHx8MHx8fDA%3D')
      center/cover no-repeat,
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

header,
main,
footer {
  width: 100%;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 24px 0 48px;
}

.grid {
  display: grid;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b1021;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.15);
  color: #dbeafe;
  font-weight: 600;
  font-size: 14px;
}

.badge {
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.badge.success {
  background: rgba(34, 197, 94, 0.16);
  color: #bbf7d0;
}

.badge.pending {
  background: rgba(245, 158, 11, 0.16);
  color: #fef3c7;
}

.badge.cancelled,
.badge.failed {
  background: rgba(239, 68, 68, 0.16);
  color: #fecaca;
}

.input {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0b1221;
  color: var(--text);
  font-size: 16px;
}

.input:focus {
  outline: 2px solid rgba(56, 189, 248, 0.35);
}

.label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.2px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
}

.table th,
.table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}

.table th {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  z-index: 999;
  box-shadow: var(--shadow);
}

.highlight-link {
  color: var(--accent-2);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid rgba(56, 189, 248, 0.6);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.highlight-link:hover {
  color: #fef9c3;
  border-color: rgba(245, 158, 11, 0.8);
  transform: translateY(-1px);
}

.toast.success {
  border-color: rgba(34, 197, 94, 0.6);
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.6);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title h2 {
  margin: 0;
  font-size: 24px;
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.divider {
  height: 1px;
  border: 0;
  background: var(--border);
  margin: 24px 0;
}

@media (max-width: 768px) {
  .container {
    width: 94vw;
    padding: 16px 0 32px;
  }

  .section-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Table responsive wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}
