:root {
  --bg: #f3f7fb;
  --surface: #ffffff;
  --surface-muted: #eef2f7;
  --text: #15202b;
  --muted: #5b6775;
  --primary: #0f6bb7;
  --primary-dark: #0b4f88;
  --accent: #17b890;
  --danger: #c93c3c;
  --border: #d8e0ea;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(21, 32, 43, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #dfefff 0%, var(--bg) 50%);
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

p {
  margin-top: 0;
}

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

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(243, 247, 251, 0.88);
  border-bottom: 1px solid rgba(216, 224, 234, 0.6);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.3px;
}

.btn {
  border: none;
  border-radius: 999px;
  background: linear-gradient(130deg, var(--primary), #1f8be0);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 107, 183, 0.3);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-small {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

.btn-ghost {
  color: var(--primary-dark);
  background: rgba(15, 107, 183, 0.12);
}

.btn-danger {
  background: var(--danger);
}

.hero {
  position: relative;
  overflow: clip;
}

.hero-glow {
  position: absolute;
  inset: 8% -18% auto auto;
  width: 420px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 184, 144, 0.25), rgba(23, 184, 144, 0));
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  margin-bottom: 1rem;
}

.hero-subtitle {
  max-width: 60ch;
  color: var(--muted);
}

.event-meta {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.4rem 0;
}

.event-meta li {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
}

.countdown-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

.countdown-label {
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.countdown-grid div {
  background: var(--surface-muted);
  border-radius: 12px;
  padding: 0.65rem 0.5rem;
  text-align: center;
}

.countdown-grid span {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
}

.countdown-grid small {
  font-size: 0.75rem;
  color: var(--muted);
}

.countdown-status {
  margin-top: 1rem;
  min-height: 1.3rem;
  color: var(--primary-dark);
  font-weight: 600;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.info-card p {
  color: var(--muted);
}

.info-card.highlight {
  border-color: rgba(23, 184, 144, 0.35);
  background: linear-gradient(160deg, #ffffff, #ecfffa);
}

.target-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #117c64;
}

.register {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(238, 242, 247, 0.8));
}

.register-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.4rem;
  align-items: start;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem;
}

.form-card.compact {
  max-width: 540px;
}

.form-row {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

label {
  font-weight: 600;
  font-size: 0.92rem;
}

input,
textarea {
  border: 1px solid #c7d2e0;
  border-radius: 10px;
  padding: 0.75rem 0.82rem;
  font: inherit;
  width: 100%;
  background: #fff;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(15, 107, 183, 0.22);
  border-color: var(--primary);
}

.checkbox-row {
  margin-bottom: 1.2rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 500;
}

.checkbox-label input {
  width: auto;
  margin-top: 0.2rem;
}

.field-error {
  color: var(--danger);
  font-size: 0.8rem;
  min-height: 1rem;
}

.form-actions {
  display: flex;
  justify-content: flex-start;
}

.btn-spinner {
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  display: none;
}

.btn.is-loading .btn-spinner {
  display: inline-block;
}

.btn.is-loading .btn-text {
  opacity: 0.9;
}

.form-message {
  margin-top: 1rem;
  min-height: 1.3rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-message.success {
  color: #117c64;
}

.form-message.error {
  color: var(--danger);
}

.site-footer {
  border-top: 1px solid rgba(216, 224, 234, 0.7);
  padding: 1.6rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js-animations .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js-animations .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.admin-body {
  min-height: 100vh;
}

.admin-main {
  padding-top: 2.4rem;
}

.auth-panel {
  max-width: 560px;
  margin-inline: auto;
  animation: fadeIn 0.45s ease;
}

.dashboard {
  animation: fadeIn 0.4s ease;
}

.dashboard-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.dashboard-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.55rem 0.8rem;
  display: grid;
  line-height: 1.2;
}

.stat-card span {
  font-size: 0.75rem;
  color: var(--muted);
}

.stat-card strong {
  font-size: 1.4rem;
}

.loader-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: fit-content;
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.8rem;
}

.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(15, 107, 183, 0.25);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: auto;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

thead {
  background: #eff4fb;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem;
  border-bottom: 1px solid #ebf0f6;
}

td.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.action-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
  cursor: pointer;
}

.action-btn.approve {
  background: rgba(23, 184, 144, 0.15);
  color: #0f7058;
}

.action-btn.reject {
  background: rgba(201, 60, 60, 0.16);
  color: #9f2f2f;
}

.action-btn.delete {
  background: #f4f6fa;
  color: #27374a;
}

.status-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.23rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: capitalize;
}

.status-pill.pending {
  background: #e9eef8;
  color: #3b4f72;
}

.status-pill.approved {
  background: #def7ef;
  color: #0d6f57;
}

.status-pill.rejected {
  background: #fce3e3;
  color: #9a2a2a;
}

.empty-row {
  text-align: center;
  color: var(--muted);
  padding: 1.6rem 0.75rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 40;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 13, 22, 0.5);
}

.modal-content {
  position: relative;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 48px rgba(7, 13, 22, 0.28);
  width: min(90vw, 420px);
  padding: 1.2rem;
}

.modal-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

[hidden] {
  display: none !important;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .register-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    min-height: 4rem;
  }

  .countdown-grid span {
    font-size: 1.25rem;
  }

  .section {
    padding: 3.4rem 0;
  }

  .event-meta {
    gap: 0.6rem;
  }

  .form-card {
    padding: 1rem;
  }
}
