/* styles.css */
:root {
  --bg-dark: #0b0f19;
  --card-bg: rgba(17, 24, 39, 0.7);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-glow: rgba(59, 130, 246, 0.4);
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --accent-indigo: #4f46e5;
  --accent-teal: #0d9488;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  
  --radius: 12px;
  --font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
}

.mesh-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: #0b0f19;
  overflow: hidden;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: floatBlob 20s infinite ease-in-out alternate;
}

.mesh-blob-1 {
  width: 500px; height: 500px;
  background: #1e3a8a;
  top: -100px; left: -100px;
}

.mesh-blob-2 {
  width: 600px; height: 600px;
  background: #4f46e5;
  top: 30%; right: -150px;
  animation-delay: -5s;
}

.mesh-blob-3 {
  width: 450px; height: 450px;
  background: #0d9488;
  bottom: -100px; left: 20%;
  animation-delay: -10s;
}

.mesh-blob-4 {
  width: 550px; height: 550px;
  background: #1e293b;
  bottom: 10%; right: 30%;
  animation-delay: -15s;
}

.mesh-depth-void {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 20%, rgba(11, 15, 25, 0.8) 100%);
}

.mesh-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
}

.mesh-noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

@keyframes floatBlob {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-20px, 50px) scale(0.95); }
}

.app-header-wrapper {
  border-bottom: 1px solid var(--card-border);
  background: rgba(11, 15, 25, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.app-header {
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

nav a:hover, nav a.active {
  color: var(--text-primary);
}

.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
  width: 100%;
  flex: 1;
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: var(--card-border-glow);
}

.btn {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px -2px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(11, 15, 25, 0.5);
  color: var(--text-primary);
  border: 1px solid var(--card-border);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

input[type="text"], textarea, select {
  background: rgba(11, 15, 25, 0.7);
  color: var(--text-primary);
  border: 1px solid var(--card-border);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s ease;
}

input[type="text"]:focus, textarea:focus, select:focus {
  border-color: var(--primary);
}

.badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
}

.badge-live {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-ended {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.hero {
  text-align: center;
  padding: 5rem 1rem 3rem 1rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto;
}

#txStatus {
  margin-bottom: 1.5rem;
}