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

:root {
  --green: #22c55e;
  --green-dark: #16a34a;
  --green-glow: rgba(34, 197, 94, 0.45);
  --yellow: #facc15;
  --red: #ef4444;
  --bg: #0b1220;
  --bg-card: #111827;
  --text: #f8fafc;
  --muted: #94a3b8;
  --border: #1e293b;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  font-family: 'Nunito', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.08), transparent 35%),
    radial-gradient(circle at 80% 10%, rgba(250, 204, 21, 0.06), transparent 30%),
    radial-gradient(circle at 50% 80%, rgba(34, 197, 94, 0.05), transparent 40%);
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
}

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

h1, h2, .display {
  font-family: 'Bangers', cursive;
  letter-spacing: 0.03em;
}

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

.badge {
  display: inline-block;
  background: rgba(250, 204, 21, 0.15);
  color: var(--yellow);
  border: 1px solid rgba(250, 204, 21, 0.35);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-green {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
  border-color: rgba(34, 197, 94, 0.35);
}

.dev-banner {
  position: relative;
  z-index: 2;
  background: rgba(250, 204, 21, 0.12);
  color: var(--yellow);
  border-bottom: 1px solid rgba(250, 204, 21, 0.3);
  padding: 0.65rem 1rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a5f, #0f172a);
  border: 2px solid var(--yellow);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.12);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--green); text-decoration: none; }

.btn-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, #4ade80 0%, var(--green) 45%, var(--green-dark) 100%);
  color: #052e16;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.75rem 1.35rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2), 0 10px 24px rgba(34, 197, 94, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.btn-green:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.28), 0 14px 32px rgba(34, 197, 94, 0.38);
  text-decoration: none;
}
.btn-green.btn-sm {
  font-size: 0.9rem;
  padding: 0.6rem 1.1rem;
}
.btn-green.btn-block { width: 100%; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text);
  border: 2px solid var(--border);
  background: rgba(17, 24, 39, 0.8);
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-family: inherit;
  font-size: 0.95rem;
}
.btn-outline:hover {
  border-color: var(--green);
  background: rgba(34, 197, 94, 0.08);
  text-decoration: none;
}
.btn-outline.btn-block { width: 100%; }

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, #4ade80 0%, var(--green) 45%, var(--green-dark) 100%);
  color: #052e16;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.6rem 1.1rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2), 0 10px 24px rgba(34, 197, 94, 0.3);
  font-family: inherit;
}

.hero {
  text-align: center;
  padding: 2.5rem 1.5rem 1.5rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 0.95;
  color: var(--green);
  text-shadow: 0 0 30px var(--green-glow), 0 4px 0 #14532d;
  margin: 0.75rem 0 0.5rem;
}
.hero .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 1.5rem;
}
.hero .subtitle strong { color: var(--yellow); }

.professor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.25rem auto 1.75rem;
  flex-wrap: wrap;
  max-width: 520px;
}
.puppet-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #0f172a;
  border: 3px solid var(--yellow);
  overflow: hidden;
  box-shadow:
    0 0 0 5px rgba(250, 204, 21, 0.12),
    0 10px 28px rgba(34, 197, 94, 0.22);
  flex-shrink: 0;
}
.puppet-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}
.puppet-avatar-sm {
  width: 56px;
  height: 56px;
}
.professor-quote {
  max-width: 560px;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--green);
  background: rgba(34, 197, 94, 0.06);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #cbd5e1;
  font-size: 0.95rem;
  text-align: left;
}
.professor-quote cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-weight: 700;
  color: var(--yellow);
  font-size: 0.88rem;
}
.professor-text { text-align: left; }
.professor-text strong {
  display: block;
  font-size: 1.05rem;
  color: var(--yellow);
}
.professor-text span {
  color: var(--muted);
  font-size: 0.92rem;
}

.billing-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-card);
}
.billing-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.85rem 1.4rem;
  cursor: pointer;
  min-width: 160px;
  font-family: inherit;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.billing-toggle button.active {
  background: linear-gradient(180deg, #4ade80 0%, var(--green) 100%);
  color: #052e16;
}
.billing-toggle small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 2px;
  opacity: 0.85;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.35rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.plan-card:hover {
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: var(--shadow);
}
.plan-card.recommended {
  border: 2px solid var(--green);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12), var(--shadow);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #4ade80, var(--green-dark));
  color: #052e16;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.plan-subtitle {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.plan-card h2 {
  font-family: 'Bangers', cursive;
  margin: 0 0 0.75rem;
  font-size: 1.65rem;
  color: var(--green);
  letter-spacing: 0.03em;
}
.price {
  font-family: 'Bangers', cursive;
  font-size: 2.5rem;
  color: var(--text);
  line-height: 1;
  letter-spacing: 0.02em;
}
.price span {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}
.price-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.5rem 0 1rem;
  min-height: 2.5rem;
}

.plan-cta {
  width: 100%;
  margin-bottom: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #4ade80 0%, var(--green) 45%, var(--green-dark) 100%);
  color: #052e16;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2), 0 8px 20px rgba(34, 197, 94, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}
.plan-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.28), 0 12px 28px rgba(34, 197, 94, 0.35);
}
.plan-cta-secondary {
  width: 100%;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  border: 2px solid var(--border);
  background: rgba(17, 24, 39, 0.8);
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s, background 0.2s;
}
.plan-cta-secondary:hover {
  border-color: var(--green);
  background: rgba(34, 197, 94, 0.08);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
  flex: 1;
}
.plan-features li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #cbd5e1;
}
.plan-features li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--yellow);
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

.merch {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem 2.5rem;
}
.merch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.merch-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.merch-card:hover {
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: var(--shadow);
}
.merch-card h3 {
  font-family: 'Bangers', cursive;
  font-size: 1.5rem;
  color: var(--green);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}
.merch-emoji { font-size: 3rem; margin-bottom: 0.75rem; }
.merch-desc { color: var(--muted); font-size: 0.92rem; min-height: 2.75rem; margin-bottom: 0.35rem; }
.merch-sizes { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.75rem; }

.includes {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.08), transparent);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem 3rem;
}
.includes h3 {
  font-family: 'Bangers', cursive;
  text-align: center;
  margin: 0 0 1.5rem;
  font-size: 1.75rem;
  color: var(--yellow);
  letter-spacing: 0.03em;
}
.includes-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}
.include-item {
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}
.include-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.55rem;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 1.1rem;
}

.final-cta {
  text-align: center;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.03));
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  margin: 2rem auto;
  max-width: 640px;
}
.final-cta h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 0.5rem;
}
.final-cta p { color: var(--muted); margin-bottom: 1rem; }

.site-footer {
  text-align: center;
  padding: 2rem 1.5rem 2.5rem;
  color: #64748b;
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}
.site-footer a { color: var(--green); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 30;
}
.modal-backdrop.open { display: flex; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.modal h3 {
  font-family: 'Bangers', cursive;
  font-size: 1.6rem;
  color: var(--green);
  margin-top: 0;
  letter-spacing: 0.03em;
}
.modal-desc { color: var(--muted); margin: 0.25rem 0 0.75rem; font-size: 0.92rem; }
.modal label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
  margin: 0.85rem 0 0.35rem;
}
.modal input,
.modal select,
select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: #0f172a;
  color: var(--text);
}
.modal input:focus,
.modal select:focus,
select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}
.modal-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.25rem;
}
.modal-actions .btn-green,
.modal-actions .btn-outline { flex: 1; }

.checkout-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.85rem;
  line-height: 1.45;
}
.hidden { display: none !important; }

.result-box {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 12px;
  font-size: 0.85rem;
  word-break: break-all;
  display: none;
  color: #cbd5e1;
}
.result-box.show { display: block; }
.result-box strong { color: var(--green); }

/* Checkout page */
.checkout-professor {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.checkout-professor-name {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.checkout-wrap {
  max-width: 520px;
  margin: 2rem auto 3rem;
  padding: 0 1.5rem;
}
.checkout-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.checkout-card h1 {
  font-size: 2rem;
  color: var(--green);
  margin-bottom: 0.35rem;
}
.checkout-line { color: var(--muted); margin-bottom: 0.5rem; }
.checkout-amount {
  font-family: 'Bangers', cursive;
  font-size: 2.5rem;
  color: var(--text);
  margin: 0.25rem 0 1rem;
}
.checkout-email { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.checkout-card label {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
}
.checkout-card input,
.checkout-card select {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f172a;
  color: var(--text);
  font: inherit;
}
.checkout-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.25rem;
}
.checkout-actions .btn-green,
.checkout-actions .btn-outline { flex: 1; }
.checkout-section-title {
  font-family: 'Bangers', cursive;
  font-size: 1.25rem;
  color: var(--yellow);
  margin-top: 1.25rem;
  letter-spacing: 0.03em;
}

/* Admin */
.admin-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}
.admin-wrap > h1 {
  font-size: 2.2rem;
  color: var(--green);
  margin-bottom: 0.5rem;
}
.admin-toolbar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.admin-toolbar input {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 220px;
  background: #0f172a;
  color: var(--text);
  font: inherit;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
th, td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.88rem;
}
th {
  background: #0f172a;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
tr:last-child td { border-bottom: 0; }
td { color: #cbd5e1; }
.tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.actions button {
  margin-right: 0.35rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0f172a;
  color: var(--text);
  cursor: pointer;
  font-size: 0.78rem;
  font-family: inherit;
}
.actions button:hover { border-color: var(--green); }
.verify-panel {
  margin-top: 1.75rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.verify-panel h3 {
  font-family: 'Bangers', cursive;
  color: var(--yellow);
  letter-spacing: 0.03em;
}
.verify-panel textarea {
  width: 100%;
  min-height: 120px;
  margin-top: 0.5rem;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  background: #0f172a;
  color: var(--text);
}
.verify-panel pre,
#verify-output {
  margin-top: 0.75rem;
  background: #0f172a !important;
  color: #cbd5e1;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: auto;
}
code {
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.88em;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #4ade80 0%, var(--green) 45%, var(--green-dark) 100%);
  color: #052e16;
  font-weight: 800;
  padding: 0.75rem 1.2rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2), 0 8px 20px rgba(34, 197, 94, 0.28);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  border: 2px solid var(--border);
  background: rgba(17, 24, 39, 0.8);
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; }
  .merch-grid { grid-template-columns: 1fr; }
  .includes-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .checkout-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .professor { flex-direction: column; text-align: center; }
  .professor-text { text-align: center; }
  .site-header { flex-wrap: wrap; justify-content: center; }
}