:root {
  color-scheme: light;
  --spmb-ink: #172554;
  --spmb-muted: #64748b;
  --spmb-orange: #f97316;
  --spmb-rose: #f43f5e;
  --spmb-violet: #7c3aed;
  --spmb-teal: #0f9f9a;
  --spmb-line: #e7eaf3;
  --spmb-shadow: 0 20px 55px rgb(23 37 84 / 9%);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--spmb-ink);
  background-color: #f6f7fb !important;
  background-image:
    radial-gradient(ellipse at 5% 0%, rgb(251 146 60 / 13%), transparent 34rem),
    radial-gradient(ellipse at 95% 15%, rgb(124 58 237 / 10%), transparent 32rem),
    linear-gradient(145deg, #fffaf7 0%, #f7f8ff 48%, #f0fbfa 100%) !important;
  background-attachment: fixed;
}

svg,
.ui-icon {
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px;
}

a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }

/* Public registration */
header.no-print {
  position: relative;
  border-color: rgb(226 232 240 / 75%);
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 8px 28px rgb(23 37 84 / 5%);
  backdrop-filter: blur(16px);
}

header.no-print img {
  border: 2px solid white;
  box-shadow: 0 4px 14px rgb(249 115 22 / 20%);
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border: 0 !important;
  background: linear-gradient(105deg, #f97316, #ea580c 58%, #c2410c) !important;
  box-shadow: 0 8px 26px rgb(194 65 12 / 22%) !important;
}

.site-header-inner {
  display: flex;
  box-sizing: border-box;
  max-width: 80rem;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 10px 24px;
}

.site-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: white;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.2;
  text-decoration: none;
}

.site-brand img {
  width: 46px;
  height: 46px;
  border: 2px solid rgb(255 255 255 / 90%);
  border-radius: 50%;
  background: white;
  object-fit: contain;
}

.site-brand small {
  display: block;
  margin-top: 3px;
  color: rgb(255 255 255 / 78%);
  font-size: 11px;
  font-weight: 600;
}

.site-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.site-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 11px;
  color: white;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s ease, transform .18s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgb(255 255 255 / 18%);
}

.site-nav a:hover { transform: translateY(-1px); }

.site-nav .site-nav-login {
  min-width: 84px;
  margin-left: 7px;
  background: #fff7ed;
  color: #c2410c;
  box-shadow: 0 4px 12px rgb(124 45 18 / 15%);
}

.site-nav .site-nav-login:hover { background: white; }

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(290px, .92fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  overflow: hidden;
  margin-bottom: 48px;
  padding: clamp(24px, 5vw, 58px);
  border: 1px solid rgb(255 255 255 / 90%);
  border-radius: 30px;
  background: linear-gradient(115deg, rgb(255 255 255 / 96%), #fff7ed 54%, #f5f3ff);
  box-shadow: var(--spmb-shadow);
}

.home-hero.no-brochure { grid-template-columns: minmax(0, 1fr); }

.home-hero::before {
  position: absolute;
  top: -110px;
  left: 44%;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: rgb(251 146 60 / 9%);
  content: "";
  pointer-events: none;
}

.hero-copy { position: relative; z-index: 1; }

.hero-eyebrow,
.form-area-heading > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c2410c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
}

.hero-eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 0 4px #ffedd5;
  content: "";
}

.hero-copy h1 {
  max-width: 620px;
  margin: 18px 0 14px;
  color: #172554;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.12;
}

.hero-copy > p {
  max-width: 570px;
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.8;
}

.hero-register {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(105deg, #f97316, #f43f5e);
  box-shadow: 0 10px 24px rgb(244 63 94 / 20%);
  color: white;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.hero-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgb(244 63 94 / 27%);
}

.hero-documents {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  scroll-margin-top: 24px;
}

.hero-document-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid #e6e8f0;
  border-radius: 13px;
  background: rgb(255 255 255 / 86%);
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.hero-document-link:hover {
  transform: translateY(-1px);
  border-color: #fdba74;
  background: white;
  color: #c2410c;
}

.hero-document-link:last-child svg { color: #7c3aed; }

.brochure-frame {
  position: relative;
  z-index: 1;
  padding: 11px;
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 27px;
  background: linear-gradient(140deg, #fb923c, #f43f5e 55%, #8b5cf6);
  box-shadow: 0 20px 46px rgb(124 58 237 / 18%);
  transform: rotate(1deg);
}

.brochure-image-wrap {
  overflow: hidden;
  border-radius: 19px;
}

#brochure-image {
  display: block;
  width: 100%;
  max-height: 560px;
  height: auto;
  object-fit: contain;
}

.form-area {
  max-width: 60rem;
  margin: 0 auto;
  scroll-margin-top: 24px;
}

.form-area-heading {
  margin: 0 auto 20px;
  text-align: center;
}

.form-area-heading h2 {
  margin: 8px 0 5px;
  color: #172554;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -.03em;
}

.form-area-heading p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.brochure-admin-preview {
  display: grid;
  min-height: 120px;
  place-items: center;
  margin-top: 10px;
  padding: 12px;
  border: 1px dashed #fdba74;
  border-radius: 14px;
  background: linear-gradient(120deg, #fff7ed, #f5f3ff);
}

.brochure-admin-preview img {
  display: block;
  max-width: min(100%, 360px);
  max-height: 230px;
  border-radius: 9px;
  object-fit: contain;
}

.brochure-admin-preview p { margin: 0; text-align: center; }

main > div[role="tablist"] { gap: 10px !important; margin-bottom: 20px !important; }

main > div[role="tablist"] a,
main > div[role="tablist"] button {
  min-height: 48px;
  border-radius: 14px !important;
  box-shadow: 0 6px 16px rgb(23 37 84 / 5%);
}

main > div[role="tablist"] button[aria-current="page"] {
  border: 0;
  background: linear-gradient(110deg, #f97316, #f43f5e 65%, #e879f9) !important;
  box-shadow: 0 9px 22px rgb(244 63 94 / 22%);
}

main > div[role="tablist"] a {
  border-color: #e1e6f0 !important;
  background: rgb(255 255 255 / 84%) !important;
}

main > div[role="tablist"] a:hover {
  border-color: #fdba74 !important;
  background: #fff7ed !important;
}

#form-card {
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 85%) !important;
  border-top: 5px solid #f97316 !important;
  border-image: none !important;
  border-radius: 26px !important;
  background: rgb(255 255 255 / 95%) !important;
  box-shadow: var(--spmb-shadow) !important;
}

#form-card > div:first-child {
  background: linear-gradient(120deg, #fff7ed 0%, #fff1f2 54%, #f5f3ff 100%);
}

#form-card h1 { color: #172554 !important; }
#form-card #academic-year { color: #ea580c !important; }

.step-item {
  min-height: 48px;
  border-color: #e6e9f2;
  border-radius: 14px;
  background: #f8fafc;
}

.step-item.current {
  border-color: transparent;
  background: linear-gradient(110deg, #f97316, #f43f5e);
  color: white;
  box-shadow: 0 7px 18px rgb(244 63 94 / 18%);
}

.step-item.current .step-number {
  background: rgb(255 255 255 / 24%);
  color: white;
}

.step-item.complete {
  border-color: #a7f3d0;
  background: linear-gradient(110deg, #ecfdf5, #ccfbf1);
  color: #047857;
}

.step-item.complete .step-number { background: #0f9f8f; }

.section-banner {
  border-radius: 14px !important;
  background: linear-gradient(105deg, #f97316, #f43f5e 62%, #a855f7) !important;
  box-shadow: 0 8px 18px rgb(244 63 94 / 16%) !important;
}

#form-card .field-row {
  border-color: #edf0f7;
  transition: background-color .18s ease, border-color .18s ease;
}

#form-card .field-row:hover {
  border-color: #fce7d7;
  background: linear-gradient(100deg, #fffaf6, #fff 70%);
}

.field-label { color: #334155 !important; }

.field-control {
  min-height: 48px;
  border-color: #dce3ee;
  border-radius: 13px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgb(23 37 84 / 3%);
}

.field-control:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 4px rgb(249 115 22 / 12%), 0 5px 16px rgb(249 115 22 / 8%);
}

.helper { color: #8490a3; }

#form-card button[data-step-next],
#form-card button[type="submit"] {
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(105deg, #f97316, #f43f5e) !important;
  box-shadow: 0 10px 24px rgb(244 63 94 / 20%) !important;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

#form-card button[data-step-next]:hover,
#form-card button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgb(244 63 94 / 27%) !important;
}

#form-card button[data-step-back] {
  border: 1px solid #e1e6f0 !important;
  border-radius: 999px !important;
  background: white !important;
  color: #475569 !important;
}

#help-card {
  border: 1px solid #fed7aa !important;
  border-top: 4px solid #f97316 !important;
  border-image: none !important;
  border-radius: 22px !important;
  background: linear-gradient(115deg, #fff7ed, #fff1f2 62%, #f5f3ff) !important;
  box-shadow: 0 14px 34px rgb(124 58 237 / 7%) !important;
}

#help-card a {
  min-height: 48px;
  border-radius: 999px;
  background: linear-gradient(105deg, #f97316, #f43f5e) !important;
  box-shadow: 0 9px 22px rgb(244 63 94 / 20%);
}

footer.no-print {
  margin-top: 30px;
  border-color: rgb(226 232 240 / 75%);
  background: rgb(255 255 255 / 75%);
}

/* Student portal */
.panel {
  border-color: rgb(255 255 255 / 85%);
  border-radius: 24px;
  background: rgb(255 255 255 / 93%);
  box-shadow: var(--spmb-shadow);
}

#login-panel {
  position: relative;
  overflow: hidden;
  border-top: 5px solid #f97316;
}

#login-panel > img {
  padding: 5px;
  border: 1px solid #ffedd5;
  background: linear-gradient(135deg, #fff7ed, #fce7f3);
  box-shadow: 0 10px 22px rgb(249 115 22 / 12%);
}

#login-panel h1 { color: #172554; }

#portal-content > header {
  border-top: 4px solid #f97316;
  background: linear-gradient(120deg, #fff 20%, #fff7ed 100%);
}

.status-card {
  position: relative;
  overflow: hidden;
  border-color: #e7eaf3;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #f8fafc);
  box-shadow: 0 8px 20px rgb(23 37 84 / 4%);
}

.status-card:nth-child(4n + 1) { border-top: 3px solid #f97316; background: linear-gradient(145deg, #fff, #fff7ed); }
.status-card:nth-child(4n + 2) { border-top: 3px solid #8b5cf6; background: linear-gradient(145deg, #fff, #f5f3ff); }
.status-card:nth-child(4n + 3) { border-top: 3px solid #0f9f9a; background: linear-gradient(145deg, #fff, #f0fdfa); }
.status-card:nth-child(4n) { border-top: 3px solid #f43f5e; background: linear-gradient(145deg, #fff, #fff1f2); }

#selection-result-panel {
  border-color: #1d4ed8 !important;
  border-radius: 22px !important;
  color: #fff !important;
  background: linear-gradient(115deg, #2563eb, #1d4ed8 55%, #1e3a8a) !important;
  box-shadow: 0 14px 34px rgb(30 64 175 / 30%);
}

#selection-result-panel.accepted {
  border-color: #166534 !important;
  background: linear-gradient(115deg, #16a34a, #15803d 55%, #166534) !important;
  box-shadow: 0 14px 34px rgb(21 128 61 / 30%);
}

#selection-result-panel.rejected {
  border-color: #991b1b !important;
  background: linear-gradient(115deg, #dc2626, #b91c1c 55%, #991b1b) !important;
  box-shadow: 0 14px 34px rgb(185 28 28 / 30%);
}

#selection-result-panel.reserve {
  border-color: #a16207 !important;
  color: #422006 !important;
  background: linear-gradient(115deg, #fde047, #facc15 55%, #eab308) !important;
  box-shadow: 0 14px 34px rgb(161 98 7 / 28%);
}

#selection-result-panel .selection-result-content h2 {
  color: inherit !important;
}

#selection-result-panel .selection-result-content p {
  color: inherit !important;
}

#selection-result-panel #selection-icon-pending { color: #dbeafe !important; }
#selection-result-panel #selection-icon-accepted { color: #bbf7d0 !important; }
#selection-result-panel #selection-icon-rejected { color: #fecaca !important; }
#selection-result-panel #selection-icon-reserve { color: #713f12 !important; }

#logout-confirm-dialog::backdrop {
  background: rgb(15 23 42 / 52%);
}

#payment-panel { border-top: 4px solid #0f9f9a; }

#login-button, #download-card-button, #payment-proof-button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(105deg, #f97316, #f43f5e);
  box-shadow: 0 9px 22px rgb(244 63 94 / 19%);
  transition: transform .18s ease, box-shadow .18s ease;
}

#login-button:hover, #download-card-button:hover, #payment-proof-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 26px rgb(244 63 94 / 25%);
}

#download-card-button { background: linear-gradient(105deg, #4f46e5, #7c3aed); }

#logout-button {
  border-color: #e5e7eb;
  border-radius: 999px;
  background: white;
}

.document-chip {
  border-color: #e7eaf3;
  border-radius: 13px;
  background: linear-gradient(110deg, #fff, #f8fafc);
}

/* Admin dashboard */
body:has(#dashboard) { font-family: "Plus Jakarta Sans", Arial, sans-serif; }

.card {
  border-color: rgb(255 255 255 / 86%);
  border-radius: 20px;
  background: rgb(255 255 255 / 94%);
  box-shadow: var(--spmb-shadow);
}

#login-card {
  position: relative;
  overflow: hidden;
  border-top: 5px solid #f97316;
}

#login-card img {
  padding: 5px;
  border: 1px solid #ffedd5;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff7ed, #fce7f3);
  box-shadow: 0 10px 22px rgb(249 115 22 / 13%);
}

.topbar {
  border-top: 3px solid #f97316;
  background: linear-gradient(115deg, #fff, #fff7ed 68%, #f5f3ff);
}

.topbar h1, .section h2 { color: #172554; }

.topbar button, .section button, dialog button, #login-card button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(105deg, #f97316, #f43f5e);
  box-shadow: 0 6px 15px rgb(244 63 94 / 13%);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.topbar button:hover, .section button:hover, dialog button:hover, #login-card button:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 19px rgb(244 63 94 / 19%);
}

.topbar button.secondary, .section button.secondary, dialog button.secondary {
  border: 1px solid #e1e6f0;
  background: #fff;
  color: #475569;
  box-shadow: 0 3px 8px rgb(23 37 84 / 4%);
}

.topbar button.dark { background: linear-gradient(105deg, #4f46e5, #7c3aed); }

.sidebar {
  border-radius: 20px;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 12px 30px rgb(23 37 84 / 7%);
}

.sidebar button {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #53617b;
  box-shadow: none;
}

.sidebar button.active, .sidebar button:hover {
  background: linear-gradient(105deg, #fff1e6, #fff1f2);
  color: #c2410c;
  box-shadow: inset 3px 0 #f97316;
}

.sidebar-master[hidden],
.sidebar-submenu[hidden] { display: none !important; }

.sidebar-master { display: grid; gap: 4px; }
.sidebar-master > button { justify-content: space-between; width: 100%; }
.sidebar-nav-label { display: inline-flex; align-items: center; gap: 11px; }
.master-chevron { transition: transform .18s ease; }
#master-nav-toggle[aria-expanded="true"] .master-chevron { transform: rotate(180deg); }

.sidebar-submenu {
  display: grid;
  gap: 4px;
  margin-left: 18px;
  padding: 4px 0 4px 10px;
  border-left: 1px solid #e8d5fa;
}

.sidebar-submenu button {
  min-height: 42px;
  padding: 8px 10px;
  font-size: 12px;
}

.sidebar-submenu button.active {
  background: linear-gradient(105deg, #fff1e6, #fff1f2);
  color: #c2410c;
  box-shadow: inset 3px 0 #f43f5e;
}

.sidebar .ui-icon { color: #7c3aed; }
.sidebar button.active .ui-icon { color: #ea580c; }

.metrics .metric {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  box-shadow: 0 9px 22px rgb(23 37 84 / 6%);
}

.metrics .metric::after {
  position: absolute;
  right: -24px;
  bottom: -34px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgb(255 255 255 / 48%);
  content: "";
}

.metrics .metric span, .metrics .metric strong { position: relative; z-index: 1; }
.metrics .metric span { color: #46536d; }

.metrics .metric:nth-child(4n + 1) { border-color: #fed7aa; background: linear-gradient(135deg, #fff7ed, #ffedd5); }
.metrics .metric:nth-child(4n + 2) { border-color: #ddd6fe; background: linear-gradient(135deg, #f5f3ff, #ede9fe); }
.metrics .metric:nth-child(4n + 3) { border-color: #99f6e4; background: linear-gradient(135deg, #f0fdfa, #ccfbf1); }
.metrics .metric:nth-child(4n) { border-color: #fecdd3; background: linear-gradient(135deg, #fff1f2, #ffe4e6); }

.chart {
  border-color: #e2e8f0;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, #f8faff, #fff);
}

.chart-bar { box-shadow: 0 4px 12px rgb(249 115 22 / 20%); }
.chart-column:nth-child(4n + 2) .chart-bar { background: linear-gradient(180deg, #a78bfa, #7c3aed); }
.chart-column:nth-child(4n + 3) .chart-bar { background: linear-gradient(180deg, #5eead4, #0f9f9a); }
.chart-column:nth-child(4n) .chart-bar { background: linear-gradient(180deg, #fda4af, #f43f5e); }

.section { border-top: 3px solid #e9d5ff; }
.section-heading p, .section > p { color: #74819a; }

input, select, textarea {
  border-color: #dce3ee;
  border-radius: 12px;
  transition: border-color .16s ease, box-shadow .16s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: #f97316;
  outline: 3px solid rgb(249 115 22 / 12%);
}

.table-wrap { border-color: #e6eaf2; border-radius: 15px; }
th { background: linear-gradient(110deg, #fff7ed, #f5f3ff); color: #5b6277; }
tbody tr:nth-child(even) { background: #fafbff; }
tbody tr:hover { background: #fff7ed; }

.sync-banner {
  border: 1px solid #ddd6fe;
  border-radius: 13px;
  background: linear-gradient(105deg, #f5f3ff, #fff7ed);
}

dialog { border-radius: 22px; background: #fff; }
dialog::backdrop { background: rgb(23 37 84 / 55%); backdrop-filter: blur(4px); }
.dialog-heading { padding-bottom: 14px; border-bottom: 1px solid #edf0f7; }
.review-item { border-color: #e7eaf3; border-radius: 14px; background: linear-gradient(110deg, #fff, #fafbff); }

@media (max-width: 640px) {
  .sidebar { border-radius: 16px; }
  .metrics .metric strong { font-size: 19px; }
  .step-item { font-size: 10px; }
}

@media (max-width: 900px) {
  .sidebar { display: flex; flex-wrap: wrap; overflow: visible; }
  .sidebar-master { position: relative; flex: 0 0 auto; width: max-content; }
  .sidebar-master > button { width: max-content; }
  .sidebar-submenu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 20;
    width: 245px;
    margin: 0;
    padding: 8px;
    border: 1px solid #e8d5fa;
    border-radius: 14px;
    background: white;
    box-shadow: 0 16px 36px rgb(23 37 84 / 16%);
  }
}

@media (max-width: 760px) {
  .site-header-inner {
    min-height: auto;
    flex-direction: column;
    gap: 8px;
    padding: 9px 12px 0;
  }

  .site-brand { align-self: flex-start; }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 3px;
    overflow-x: auto;
    padding: 2px 0 9px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { min-height: 39px; padding: 0 11px; font-size: 11px; }
  .site-nav .site-nav-login { min-width: 65px; margin-left: 2px; }
  .home-hero { grid-template-columns: 1fr; gap: 26px; padding: 25px 20px; }
  .hero-copy h1 { max-width: 540px; }
  .brochure-frame { width: min(100%, 520px); margin: 0 auto; transform: none; }
  .form-area-heading { padding: 0 8px; }
}

@media print {
  body { background: white !important; }
  .site-header, #beranda, .form-area-heading { display: none !important; }
  .form-area { max-width: none; }
  #form-card { border: 1px solid #ddd !important; box-shadow: none !important; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-status-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 24px;
  padding: 0 18px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: white;
  color: #c2410c;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.hero-status-link:hover {
  transform: translateY(-2px) scale(1.025);
  background: #fff7ed;
  box-shadow: 0 9px 22px rgb(249 115 22 / 12%);
}

.hero-register:hover { transform: translateY(-2px) scale(1.025); }

.about-section,
.timeline-section {
  max-width: 1080px;
  margin: 0 auto 54px;
}

.about-heading,
.timeline-heading {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}

.section-eyebrow {
  color: #c2410c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.about-heading h2,
.timeline-heading h2 {
  margin: 8px 0 10px;
  color: #172554;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -.035em;
}

.about-heading p,
.timeline-heading p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.8;
}

.timeline-heading h2 span { color: #ea580c; }

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.benefit-card {
  min-height: 205px;
  padding: 21px 19px;
  border: 1px solid #e8eaf2;
  border-radius: 19px;
  background: rgb(255 255 255 / 90%);
  box-shadow: 0 9px 24px rgb(23 37 84 / 5%);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.benefit-card:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: #fed7aa;
  box-shadow: 0 15px 32px rgb(23 37 84 / 9%);
}

.benefit-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
}

.benefit-icon svg { width: 21px !important; height: 21px !important; }
.benefit-orange { background: #fff1e6; color: #ea580c; }
.benefit-violet { background: #f3e8ff; color: #7c3aed; }
.benefit-teal { background: #ccfbf1; color: #0f766e; }
.benefit-rose { background: #ffe4e6; color: #e11d48; }

.benefit-card h3 {
  margin: 17px 0 7px;
  color: #1e293b;
  font-size: 15px;
  font-weight: 800;
}

.benefit-card p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.7;
}

.timeline-section {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgb(255 255 255 / 90%);
  border-radius: 26px;
  background: linear-gradient(130deg, rgb(255 255 255 / 94%), #fff7ed 62%, #f5f3ff);
  box-shadow: var(--spmb-shadow);
}

.timeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 13px;
  padding-top: 35px;
}

.timeline-track::before {
  position: absolute;
  top: 16px;
  right: 4%;
  left: 4%;
  height: 3px;
  border-radius: 5px;
  background: linear-gradient(90deg, #f97316, #a78bfa 54%, #14b8a6);
  content: "";
}

.timeline-item {
  position: relative;
  min-width: 0;
}

.timeline-marker {
  position: absolute;
  top: -35px;
  left: 50%;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 3px solid white;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 0 2px #fed7aa, 0 4px 12px rgb(249 115 22 / 20%);
  color: white;
  font-size: 10px;
  font-weight: 800;
  transform: translateX(-50%);
}

.timeline-card {
  min-height: 190px;
  padding: 15px 13px;
  border: 1px solid #e5e7eb;
  border-top: 3px solid #cbd5e1;
  border-radius: 15px;
  background: white;
  box-shadow: 0 7px 18px rgb(23 37 84 / 5%);
  transition: transform .22s ease, box-shadow .22s ease;
}

.timeline-item:hover .timeline-card {
  transform: translateY(-4px);
  box-shadow: 0 13px 25px rgb(23 37 84 / 10%);
}

.timeline-ongoing .timeline-card { border-top-color: #f97316; }
.timeline-ongoing .timeline-marker { background: #f97316; box-shadow: 0 0 0 2px #fed7aa; }
.timeline-complete .timeline-card { border-top-color: #0f9f8f; }
.timeline-complete .timeline-marker { background: #0f9f8f; box-shadow: 0 0 0 2px #99f6e4; }
.timeline-upcoming .timeline-marker { background: #7c3aed; box-shadow: 0 0 0 2px #ddd6fe; }
.timeline-upcoming .timeline-card { border-top-color: #a78bfa; }

.timeline-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  margin-bottom: 12px;
}

.timeline-date {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

.timeline-status {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3e8ff;
  color: #6d28d9;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline-ongoing .timeline-status { background: #ffedd5; color: #c2410c; }
.timeline-complete .timeline-status { background: #ccfbf1; color: #0f766e; }

.timeline-card h3 {
  margin: 0 0 7px;
  color: #1e293b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.timeline-card p {
  margin: 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.65;
}

.timeline-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  border: 1px dashed #fdba74;
  border-radius: 14px;
  color: #9a3412;
  text-align: center;
}

.timeline-admin-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(170px, 1.3fr) minmax(160px, 1fr) minmax(125px, .75fr) minmax(82px, .45fr) auto;
  align-items: end;
  gap: 10px;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid #e7eaf3;
  border-radius: 14px;
  background: linear-gradient(110deg, #fff, #fafbff);
}

.timeline-admin-row label {
  display: grid;
  gap: 6px;
  color: #53617b;
  font-size: 11px;
  font-weight: 700;
}

.timeline-admin-row input,
.timeline-admin-row select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid #dce3ee;
  border-radius: 10px;
  background: white;
  color: #172554;
  font: inherit;
  font-size: 12px;
}

.timeline-admin-row button { min-height: 42px; }

button:not(:disabled):active,
a[href]:active {
  transform: scale(.97);
  transition-duration: .08s;
}

button:not(:disabled):hover,
a[href]:hover {
  transform: scale(1.025);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px) scale(.99);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .75, .25, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 1050px) {
  .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline-track { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 44px; }
  .timeline-track::before { display: none; }
}

@media (max-width: 760px) {
  .hero-actions { align-items: stretch; }
  .hero-actions > a { flex: 1 1 220px; margin-top: 20px; }
  .about-section, .timeline-section { margin-bottom: 38px; }
  .timeline-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline-card { min-height: 175px; }
}

@media (max-width: 640px) {
  .benefit-grid, .timeline-track { grid-template-columns: 1fr; }
  .benefit-card { min-height: auto; }
  .timeline-track { gap: 14px; padding-top: 0; }
  .timeline-item { padding-left: 39px; }
  .timeline-marker { top: 16px; left: 0; transform: none; }
  .timeline-card { min-height: 0; padding: 16px; }
  .timeline-admin-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal-on-scroll { opacity: 1; transform: none; }
}

html[data-spmb-page="home"] #formulir { display: none !important; }

html[data-spmb-page="registration"] #beranda,
html[data-spmb-page="registration"] .about-section,
html[data-spmb-page="registration"] #timeline {
  display: none !important;
}

html[data-spmb-page="registration"] main { padding-top: 30px !important; }
