:root {
  --bg: #0f172a;
  --card: #1e293b;
  --border: #334155;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --green: #22c55e;
  --green-dark: #16a34a;
  --danger: #ef4444;
}

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

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-brand img { height: 36px; width: auto; }

.nav-links { display: flex; gap: 1rem; align-items: center; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.card h2 { margin-bottom: 1rem; font-size: 1.25rem; }

.hero {
  text-align: center;
  padding: 3rem 1rem;
}

.hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.hero p { color: var(--muted); margin-bottom: 2rem; }

.btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.btn-primary { background: var(--green); color: #052e16; }
.btn-primary:hover { background: var(--green-dark); text-decoration: none; }

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
}

.btn-outline:hover { background: rgba(34, 197, 94, 0.1); text-decoration: none; }

.form { max-width: 400px; margin: 2rem auto; }

.form label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.form input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.form button { width: 100%; margin-top: 0.5rem; }

.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.alert-error { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.alert-success { background: rgba(34, 197, 94, 0.15); color: #86efac; }
.alert-info { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.stat .num { font-size: 1.75rem; font-weight: 700; color: var(--green); }
.stat .lbl { font-size: 0.85rem; color: var(--muted); margin-top: 0.25rem; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

th { color: var(--muted); font-weight: 600; }

.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(34, 197, 94, 0.2);
  color: var(--green);
}

.muted { color: var(--muted); font-size: 0.85rem; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.price-tag { font-size: 1.5rem; font-weight: 700; color: var(--green); margin: 0.5rem 0; }
.price-tag s { font-size: 1rem; color: var(--muted); margin-left: 0.5rem; }

.qr-box {
  text-align: center;
  padding: 1rem;
}

.qr-box img { max-width: 280px; border-radius: 8px; background: #fff; padding: 8px; }

.footer-note {
  margin-top: 2rem;
  padding: 1rem;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}
