:root {
  --primary: #0e9f6e;
  --primary-dark: #057a55;
  --accent: #f59e0b;
  --bg: #f6faf8;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

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

body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.container { width: min(1100px, 100% - 32px); margin-inline: auto; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.brand span { color: var(--primary); }
.nav-links { display: flex; gap: 20px; align-items: center; font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--primary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-sm { padding: 8px 18px; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(135deg, rgba(5, 122, 85, .92), rgba(14, 159, 110, .85)),
    url("https://images.unsplash.com/photo-1501555088652-021faa106b9b?w=1600") center/cover;
  color: #fff;
  padding: 100px 0 120px;
  text-align: center;
}
.badge {
  display: inline-block;
  background: rgba(255, 255, 255, .2);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: .85rem;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: 1.15; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: #fde68a; }
.hero p { font-size: 1.1rem; opacity: .95; max-width: 620px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Countdown ---------- */
.countdown {
  display: flex; gap: 12px; justify-content: center;
  margin-top: 40px; flex-wrap: wrap;
}
.countdown div {
  background: rgba(255, 255, 255, .15);
  border-radius: 12px;
  padding: 12px 18px;
  min-width: 80px;
}
.countdown strong { display: block; font-size: 1.8rem; }
.countdown small { font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Sections ---------- */
section { padding: 70px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 1.9rem; }
.section-title p { color: var(--muted); }

.info-strip {
  margin-top: -60px;
  padding: 0;
}
.info-strip .grid { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.info-item { display: flex; gap: 14px; align-items: center; }
.info-item .icon {
  width: 48px; height: 48px; flex-shrink: 0;
  display: grid; place-items: center;
  background: #def7ec; border-radius: 12px; font-size: 1.4rem;
}
.info-item small { color: var(--muted); display: block; }
.info-item strong { font-size: 1rem; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.feature { text-align: center; }
.feature .emoji { font-size: 2.4rem; margin-bottom: 10px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .95rem; }

.cta {
  background: var(--primary);
  color: #fff;
  text-align: center;
  border-radius: var(--radius);
  padding: 50px 24px;
}
.cta h2 { margin-bottom: 10px; }
.cta p { opacity: .9; margin-bottom: 24px; }

footer {
  text-align: center;
  padding: 30px 0;
  color: var(--muted);
  font-size: .9rem;
  border-top: 1px solid var(--border);
}

/* ---------- Form Registrasi ---------- */
.auth-wrap {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 40px 16px;
}
.auth-card { width: 100%; max-width: 460px; }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 4px; }
.auth-card .sub { color: var(--muted); margin-bottom: 24px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  transition: border-color .15s;
}
.form-group input:focus,
.form-group select:focus { outline: none; border-color: var(--primary); }
.form-group .error { color: #dc2626; font-size: .82rem; margin-top: 4px; display: none; }
.form-group.invalid input,
.form-group.invalid select { border-color: #dc2626; }
.form-group.invalid .error { display: block; }

.note { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 16px; }

/* ---------- Dashboard / Info Event ---------- */
.welcome {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
}
.welcome h1 { font-size: 1.6rem; }
.ticket {
  background: #fff; color: var(--text);
  border-radius: 12px; padding: 14px 20px; text-align: center;
  border: 2px dashed var(--accent);
}
.ticket small { color: var(--muted); display: block; font-size: .75rem; }
.ticket strong { font-size: 1.3rem; letter-spacing: 2px; }

.dash { padding: 32px 0 60px; }
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-top: 20px; }
@media (max-width: 860px) { .dash-grid { grid-template-columns: 1fr; } }

.card h2 { font-size: 1.15rem; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }

.timeline { list-style: none; position: relative; padding-left: 22px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px;
  width: 2px; background: var(--border);
}
.timeline li { position: relative; padding-bottom: 16px; }
.timeline li::before {
  content: ""; position: absolute; left: -21px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary); border: 2px solid #def7ec;
}
.timeline time { font-weight: 700; color: var(--primary); font-size: .9rem; }
.timeline p { color: var(--muted); font-size: .92rem; }

.list { list-style: none; }
.list li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.list li:last-child { border-bottom: none; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { font-weight: 600; }

.stack { display: grid; gap: 20px; }

.pill {
  display: inline-block; background: #fef3c7; color: #92400e;
  font-size: .78rem; padding: 3px 10px; border-radius: 999px; font-weight: 600;
}

.map-placeholder {
  height: 180px; border-radius: 10px;
  background: repeating-linear-gradient(45deg, #ecfdf5, #ecfdf5 12px, #d1fae5 12px, #d1fae5 24px);
  display: grid; place-items: center; color: var(--primary-dark); font-weight: 600;
  margin-top: 12px;
}

@media (max-width: 600px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 70px 0 100px; }
}
