:root {
  --bg-color: #050505;
  --card-bg: rgba(20, 20, 20, 0.75);
  --text-main: #f0f0f0;
  --text-muted: #a0a0a0;
  --accent: #2ecc71;
  --accent-hover: #27ae60;
  --accent-dark: #1a8a4a;
  --border: rgba(46, 204, 113, 0.2);
  --success: #2ecc71;
  --error: #e74c3c;
  --gold: #f1c40f;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --glow-color: rgba(46, 204, 113, 0.6);
  --glow-subtle: 0 0 10px rgba(46, 204, 113, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-main);
  background-image:
    linear-gradient(rgba(46, 204, 113, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 204, 113, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #222; border-radius: 3px; border: 1px solid #444; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.card {
  background-color: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  margin-bottom: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
  box-shadow: 0 0 30px rgba(46, 204, 113, 0.15);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 10px var(--accent);
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
  font-family: var(--font-mono);
}

.nav-links { display: flex; gap: 2rem; align-items: center; }

.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 5px rgba(46, 204, 113, 0.3);
}

input[type="text"],
input[type="password"],
input[type="number"],
select {
  width: 100%;
  padding: 14px 16px;
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid #333;
  color: #fff;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  transition: all 0.3s;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--glow-color);
  background-color: rgba(0, 0, 0, 0.8);
}

button, .btn {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  padding: 14px 28px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
}

button:hover, .btn:hover {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 30px var(--accent);
}

button:disabled {
  border-color: #444;
  color: #666;
  box-shadow: none;
  cursor: not-allowed;
  background: transparent;
}

button.btn-primary {
  background: var(--accent);
  color: #000;
  border: none;
}

button.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 30px var(--glow-color);
}

button.btn-danger {
  color: var(--error);
  border-color: var(--error);
}

button.btn-danger:hover {
  background: var(--error);
  color: #fff;
  box-shadow: 0 0 30px rgba(231, 76, 60, 0.5);
}

button.btn-gold {
  color: var(--gold);
  border-color: var(--gold);
}

button.btn-gold:hover {
  background: var(--gold);
  color: #000;
  box-shadow: 0 0 30px rgba(241, 196, 15, 0.5);
}

.hero {
  text-align: center;
  padding: 4rem 0;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #fff;
}

.hero-title span { color: var(--accent); }

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.stats-bar {
  display: flex;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.03);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  margin: 3rem 0;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  font-family: var(--font-mono);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card { padding: 2rem; }
.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 { color: #fff; margin: 0 0 0.5rem; }
.feature-card p { color: var(--text-muted); line-height: 1.6; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.pricing-card {
  display: flex;
  flex-direction: column;
}

.pricing-card .card-header { text-align: center; margin-bottom: 2rem; }
.pricing-card .card-header h3 { font-size: 1.2rem; margin: 0; color: var(--text-muted); }
.pricing-card .price { font-size: 3rem; font-weight: bold; color: #fff; }
.pricing-card .price span { font-size: 1rem; color: var(--text-muted); }

.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(46, 204, 113, 0.15);
  position: relative;
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.pricing-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  color: #ddd;
  line-height: 2.2;
}

.features-list li.highlight { color: var(--accent); }

.form-center {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.form-card {
  width: 100%;
  max-width: 420px;
}

.form-card h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  color: #fff;
}

.field {
  margin-bottom: 1.2rem;
}

.notification {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  border: 1px solid;
}

.notification.success {
  background: rgba(46, 204, 113, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.notification.error {
  background: rgba(231, 76, 60, 0.1);
  border-color: var(--error);
  color: var(--error);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dash-stat {
  text-align: center;
  padding: 1.5rem;
}

.dash-stat .value {
  font-size: 1.5rem;
  font-weight: bold;
  font-family: var(--font-mono);
  color: #fff;
}

.dash-stat .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

.admin-section {
  margin-bottom: 2rem;
}

.admin-section h2 {
  color: var(--accent);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.admin-row {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.admin-row .field { margin-bottom: 0; flex: 1; min-width: 150px; }
.admin-row button { flex-shrink: 0; }

.result-msg {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.admins-list .admin-item {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #333;
  border-radius: 6px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
}

.footer {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  margin-top: auto;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer span { color: var(--accent); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  transition: all 0.3s;
}

.footer-links a:hover {
  text-shadow: 0 0 10px var(--accent);
}

.fade-in { animation: fadeIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards; }
.slide-up { animation: slideUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards; opacity: 0; }

@keyframes fadeIn { from { opacity: 0; filter: blur(5px); } to { opacity: 1; filter: blur(0); } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@media (max-width: 768px) {
  .header { flex-direction: column; gap: 1rem; }
  .nav-links { gap: 1rem; flex-wrap: wrap; justify-content: center; }
  .hero-title { font-size: 2rem; }
  .stats-bar { flex-direction: column; gap: 1.5rem; }
  .admin-row { flex-direction: column; }
}
