@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

body {
  font-family: 'Outfit', -apple-system, sans-serif;
  background: radial-gradient(circle at 50% 0%, #111827, #07090e);
  color: #f1f5f9;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Custom Scrollbar ────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #07090e;
}
::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4b5563;
}

/* ── Premium Navigation ────────────────────────────── */
nav {
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 40px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav .brand {
  color: #f3f4f6;
  font-size: 20px;
  font-weight: 700;
  margin-right: auto;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
}

nav a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 6px 0;
}

nav a:hover { 
  color: #06b6d4; 
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #06b6d4, #8b5cf6);
  transition: width 0.3s ease;
  border-radius: 99px;
}

nav a:hover::after {
  width: 100%;
}

/* ── Layout ──────────────────────────────────────── */
.container {
  max-width: 820px;
  margin: 40px auto;
  padding: 0 24px;
}

h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 28px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.02em;
}

/* ── Glassmorphic Cards ──────────────────────────── */
.card {
  background: rgba(24, 30, 47, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 32px 36px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  margin-bottom: 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  border-color: rgba(6, 182, 212, 0.2);
}

/* ── Form Inputs & Selects ──────────────────────── */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input, select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  background: rgba(10, 15, 28, 0.6);
  color: #f8fafc;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input:focus, select:focus {
  border-color: #06b6d4;
  background: rgba(10, 15, 28, 0.85);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
}

/* ── Premium Buttons ────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn:active { 
  transform: scale(0.97); 
}

.btn-primary { 
  background: linear-gradient(135deg, #8b5cf6, #6366f1); 
  color: #fff; 
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover { 
  opacity: 0.95;
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.55);
  transform: translateY(-1px);
}

.btn-green { 
  background: linear-gradient(135deg, #10b981, #059669); 
  color: #fff; 
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.btn-green:hover { 
  opacity: 0.95;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.btn-full { 
  width: 100%; 
  text-align: center; 
}

/* ── Premium Alerts ───────────────────────────────── */
.alert {
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 14px;
  margin-top: 20px;
  font-weight: 500;
  display: none;
  animation: fadeIn 0.4s ease;
  border-left: 4px solid transparent;
}

.alert.show { 
  display: block; 
}

.alert-success { 
  background: rgba(16, 185, 129, 0.12); 
  color: #34d399; 
  border-left-color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error { 
  background: rgba(239, 68, 68, 0.12); 
  color: #f87171; 
  border-left-color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

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

/* ── Modern Table styling ────────────────────────── */
.table-container {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

thead th {
  background: rgba(17, 24, 39, 0.8);
  color: #e5e7eb;
  padding: 14px 18px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 12px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.08);
}

tbody tr {
  transition: background-color 0.2s ease;
}

tbody tr:nth-child(odd)  { 
  background: rgba(255, 255, 255, 0.01); 
}

tbody tr:nth-child(even) { 
  background: rgba(0, 0, 0, 0.1); 
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

tbody td { 
  padding: 14px 18px; 
  border-bottom: 1px solid rgba(255, 255, 255, 0.04); 
  color: #cbd5e1;
}

/* ── QR Box styling ──────────────────────────────── */
.qr-box {
  text-align: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 20px;
}

.qr-box img {
  border: 8px solid #fff;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.qr-box img:hover {
  transform: scale(1.02);
}

/* ── Glowing Status Badge ──────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-green { 
  background: rgba(16, 185, 129, 0.15); 
  color: #34d399; 
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.badge-blue { 
  background: rgba(6, 182, 212, 0.15); 
  color: #22d3ee; 
  border: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
}

/* ── Stat Cards ─────────────────────────────────── */
.stats { 
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px; 
  margin-bottom: 32px; 
}

.stat-card {
  background: rgba(24, 30, 47, 0.45);
  border-radius: 14px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.15);
}

.stat-card .num { 
  font-size: 32px; 
  font-weight: 700; 
  color: #06b6d4; 
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.stat-card .lbl { 
  font-size: 12px; 
  font-weight: 600;
  color: #9ca3af; 
  margin-top: 6px; 
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Loading Spinner ────────────────────────────── */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #06b6d4;
  border-radius: 50%;
  width: 22px; 
  height: 22px;
  animation: spin .7s linear infinite;
  display: inline-block; 
  vertical-align: middle; 
  margin-right: 8px;
}

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

/* ── Custom UI Helpers ───────────────────────────── */
.text-cyan {
  color: #06b6d4 !important;
}

.text-purple {
  color: #a78bfa !important;
}

.code-hash {
  font-family: 'Courier New', Courier, monospace;
  background: rgba(0,0,0,0.3);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  color: #a78bfa;
  cursor: pointer;
  transition: all 0.2s ease;
}

.code-hash:hover {
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.3);
}

/* ── Custom range input (slider) styling ───────── */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.08);
  height: 8px;
  border-radius: 99px;
  cursor: pointer;
  border: none;
  padding: 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(6,182,212,0.5);
  transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}