/* Shared stylesheet — design tokens diambil dari halaman utama BPP (index.html) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: dark; /* kontrol native (kalender, jam, scrollbar) ikut tema gelap */
  --green:      #3db874;
  --green-dim:  #2a7a52;
  --text:       #e8ece3;
  --text-soft:  #9aa096;
  --border:     #3e4236;
  --bg:         #222620;
  --tile:       #2a2e27;
  --tile-alt:   #262a23;
  --red:        #e0604f;
  --amber:      #fbbf24;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  min-height: 100vh;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%233db874' stroke-width='0.6' opacity='0.09'%3E%3Cpolygon points='40,4 76,40 40,76 4,40'/%3E%3Crect x='20' y='20' width='40' height='40'/%3E%3Cline x1='4' y1='40' x2='20' y2='20'/%3E%3Cline x1='76' y1='40' x2='60' y2='20'/%3E%3Cline x1='4' y1='40' x2='20' y2='60'/%3E%3Cline x1='76' y1='40' x2='60' y2='60'/%3E%3Cline x1='40' y1='4' x2='40' y2='76'/%3E%3Cline x1='4' y1='40' x2='76' y2='40'/%3E%3Cline x1='20' y1='20' x2='60' y2='60'/%3E%3Cline x1='60' y1='20' x2='20' y2='60'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  display: flex;
  flex-direction: column;
}

/* ── Layout ── */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 900px; width: 100%; margin: 0 auto; padding: 1.2rem 1rem 0.6rem;
}
.brand { color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.05rem; letter-spacing: .01em; display: flex; align-items: center; gap: .6rem; }
.brand img { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.brand-text span { color: var(--green); }
.admin-nav a { color: var(--text-soft); text-decoration: none; margin-left: 1rem; font-size: .85rem; font-weight: 600; }
.admin-nav a:hover { color: var(--green); }
.public-nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.public-nav a { color: var(--text-soft); text-decoration: none; font-size: .82rem; font-weight: 600; transition: color .15s; }
.public-nav a:hover { color: var(--green); }
.back-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--text-soft); text-decoration: none; font-size: .82rem; font-weight: 600; margin-top: .6rem; }
.back-link:hover { color: var(--green); }

.container { max-width: 900px; width: 100%; margin: 0 auto; padding: 0.6rem 1rem 2rem; flex: 1; }
.site-footer { text-align: center; color: var(--text-soft); font-size: .75rem; padding: 1rem; }
.site-footer .admin-link { color: var(--text-soft); opacity: .65; margin-left: .7rem; text-decoration: none; border-bottom: 1px dotted var(--border); }
.site-footer .admin-link:hover { color: var(--green); opacity: 1; }

input[type=datetime-local] { cursor: pointer; }
input[type=datetime-local]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .8; }

h1 { font-size: 1.5rem; margin: .8rem 0 1rem; }
h2 { font-size: 1.1rem; margin: 1.2rem 0 .7rem; }
p  { line-height: 1.55; }
/* reset global menghapus margin default — beri jarak antar-blok halaman */
.container > p { margin: .5rem 0 1rem; }
strong + .badge { margin-left: .45rem; vertical-align: middle; }
.event-meta + .event-meta { margin-top: .3rem; }

/* ── Tiles / cards ── */
.tile {
  background: var(--tile);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem;
  margin-bottom: 1rem;
}
a.tile { display: block; text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s; }
a.tile:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(0,0,0,.4); }

.event-meta { color: var(--text-soft); font-size: .85rem; margin-top: .35rem; line-height: 1.6; }
.event-closed { opacity: .55; }

/* ── Forms ── */
label { display: block; font-size: .85rem; font-weight: 600; margin: .9rem 0 .3rem; }
label .req { color: var(--red); }
input[type=text], input[type=email], input[type=tel], input[type=number],
input[type=password], input[type=datetime-local], input[type=file],
textarea, select {
  width: 100%;
  background: var(--tile-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: .55rem .7rem;
  font: inherit;
  font-size: .92rem;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--green-dim); border-color: var(--green-dim); }
textarea { min-height: 90px; resize: vertical; }
.choice-group { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; }
.choice-group label { display: flex; align-items: center; gap: .5rem; margin: 0; font-weight: 400; }
.choice-group input { width: auto; }
.field-error { color: var(--red); font-size: .8rem; margin-top: .25rem; }
.hint { color: var(--text-soft); font-size: .78rem; margin-top: .25rem; }
.hp-field { position: absolute; left: -9999px; height: 1px; overflow: hidden; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  background: var(--green);
  color: #10160f;
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: .55rem 1.1rem;
  font: inherit; font-size: .9rem; font-weight: 700;
  cursor: pointer; text-decoration: none;
}
.btn:hover { background: #4ecb85; }
.btn-outline { background: transparent; color: var(--green); }
.btn-outline:hover { background: rgba(61,184,116,.12); }
.btn-danger { background: transparent; color: var(--red); border-color: var(--red); }
.btn-danger:hover { background: rgba(224,96,79,.12); }
.btn-sm { padding: .25rem .6rem; font-size: .78rem; }
form.inline { display: inline; }

/* ── Badges ── */
.badge {
  display: inline-block; padding: .15rem .55rem; border-radius: 999px;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid;
}
.badge-verified { background: #0d2119; color: var(--green); border-color: #1a3a2a; }
.badge-awaiting { background: #2a1500; color: var(--amber); border-color: #3d2200; }
.badge-pending  { background: #1c2028; color: #93a4c2; border-color: #2c3442; }
.badge-rejected { background: #2a0f0b; color: var(--red);  border-color: #46201a; }
.badge-interview { background: #10202e; color: #7cb4e8; border-color: #1e3a5f; }
.badge-draft     { background: #1c2028; color: #93a4c2; border-color: #2c3442; }
.badge-published { background: #0d2119; color: var(--green); border-color: #1a3a2a; }
.badge-closed    { background: #2a0f0b; color: var(--red); border-color: #46201a; }

/* ── Alerts ── */
.alert { border-radius: 10px; padding: .7rem .9rem; margin: .8rem 0; font-size: .9rem; border: 1px solid; }
.alert-success { background: #0d2119; color: var(--green); border-color: #1a3a2a; }
.alert-error   { background: #2a0f0b; color: var(--red); border-color: #46201a; }
.alert-info    { background: #10202e; color: #7cb4e8; border-color: #1e3a5f; }

/* ── Tables (admin) ── */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .85rem; }
table.data th, table.data td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data th { color: var(--text-soft); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
table.data tr:hover td { background: rgba(61,184,116,.04); }

/* ── Misc ── */
.ref-code {
  font-family: Consolas, monospace; font-size: 1.6rem; font-weight: 800;
  color: var(--green); letter-spacing: .12em;
  background: var(--tile-alt); border: 1px dashed var(--green-dim);
  border-radius: 10px; padding: .6rem 1rem; display: inline-block; margin: .5rem 0;
}
.proof-img, .qris-img { max-width: 100%; border-radius: 10px; border: 1px solid var(--border); margin-top: .5rem; }
.qris-img { max-width: 320px; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.muted { color: var(--text-soft); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
pre.bank-info { font: inherit; white-space: pre-wrap; background: var(--tile-alt); border: 1px solid var(--border); border-radius: 8px; padding: .7rem .9rem; }

/* ── Hero strip ── */
.hero-strip {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #152b1e, #0d2119 55%, #10202e);
  border: 1px solid #1a3a2a; border-radius: 16px;
  padding: 1.7rem 1.5rem; margin: .8rem 0 1.2rem;
}
.hero-strip::before {
  content: ''; position: absolute; border-radius: 50%;
  width: 300px; height: 300px; top: -110px; right: -70px;
  background: rgba(61,184,116,.08);
}
.hero-strip::after {
  content: ''; position: absolute; border-radius: 50%;
  width: 160px; height: 160px; bottom: -70px; right: 120px;
  background: rgba(61,184,116,.05);
}
.hero-strip h1 { margin: 0 0 .35rem; font-size: 1.5rem; position: relative; }
.hero-strip p { color: var(--text-soft); font-size: .88rem; max-width: 580px; line-height: 1.6; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .35rem; position: relative;
  background: rgba(61,184,116,.15); border: 1px solid rgba(61,184,116,.3);
  color: #6ee7b7; font-size: .66rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .22rem .65rem; border-radius: 999px; margin-bottom: .8rem;
}

/* ── Section separators (selaras beranda BPP) ── */
.sep-row { display: flex; align-items: center; gap: .65rem; margin: 1.8rem 0 1rem; }
.sep-row .sep-num  { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); flex-shrink: 0; }
.sep-row .sep-name { font-size: .88rem; font-weight: 700; color: var(--text); }
.sep-row .sep-line { flex: 1; height: 1px; background: var(--border); }
.sep-row .sep-pill { font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .55rem; border-radius: 999px; flex-shrink: 0; border: 1px solid; }
.sep-green .sep-pill { background: #0d2119; color: var(--green); border-color: #1a3a2a; }
.sep-amber .sep-pill { background: #2a1500; color: var(--amber); border-color: #3d2200; }

/* ── Card grid ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: .85rem; }
.card {
  display: flex; flex-direction: column;
  background: var(--tile); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.1rem; text-decoration: none; color: inherit;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
a.card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.45); border-color: var(--green-dim); }
.card h3 { font-size: 1.02rem; margin: 0 0 .35rem; line-height: 1.3; }
.card .desc { color: var(--text-soft); font-size: .8rem; line-height: 1.55; flex: 1; margin: 0; }
.card.closed { opacity: .55; }
.card-cta { margin-top: .8rem; }
.card-cta .btn { display: block; text-align: center; }

/* ── Meta chips ── */
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .6rem 0 0; }
.chip {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .7rem; font-weight: 600;
  padding: .22rem .6rem; border-radius: 999px;
  background: var(--tile-alt); border: 1px solid var(--border); color: var(--text-soft);
  white-space: nowrap;
}
.chip-green { color: var(--green); border-color: #1a3a2a; background: #0d2119; }
.chip-amber { color: var(--amber); border-color: #3d2200; background: #2a1500; }

/* ── Empty state ── */
.empty-state {
  border: 1px dashed var(--border); border-radius: 14px;
  padding: 1.7rem 1.2rem; text-align: center;
  color: var(--text-soft); font-size: .85rem; line-height: 1.6;
  background: rgba(42,46,39,.35);
}
.empty-state .ico { font-size: 1.7rem; display: block; margin-bottom: .45rem; opacity: .65; }

/* ── Status strip ── */
.status-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: var(--tile); border: 1px solid var(--border); border-radius: 14px;
  padding: 1rem 1.2rem; margin-top: 2rem;
}
.status-strip .st-text strong { display: block; font-size: .92rem; }
.status-strip .st-text span { color: var(--text-soft); font-size: .78rem; }

/* ── QRIS card & kotak pembayaran ── */
.pay-box {
  background: var(--tile-alt); border: 1px solid var(--border);
  border-radius: 12px; padding: 1rem 1.1rem; margin-top: 1rem;
}
.pay-box h3 { font-size: .95rem; margin: 0 0 .6rem; }
.pay-amount { font-size: 1.25rem; font-weight: 800; color: var(--green); margin-bottom: .6rem; }
.qris-card {
  background: #fff; border-radius: 14px; padding: .9rem 1rem 1rem;
  display: inline-block; text-align: center; margin: .6rem 0;
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
}
.qris-card .qris-label {
  color: #10160f; font-weight: 800; font-size: .74rem;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: .5rem;
}
.qris-card img { display: block; max-width: 240px; width: 100%; border-radius: 6px; }
.qris-card .qris-amount { color: #10160f; font-weight: 700; font-size: .85rem; margin-top: .5rem; }

/* ── Poster ── */
.poster-frame { margin: 0 0 1.2rem; text-align: center; }
.poster-frame img {
  max-width: 100%; max-height: 460px; border-radius: 14px;
  border: 1px solid var(--border); box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.card-img {
  width: calc(100% + 2.2rem); margin: -1.1rem -1.1rem .8rem;
  height: 150px; object-fit: cover;
  border-radius: 13px 13px 0 0; display: block;
}

/* ── Tabs ── */
.tabs { display: flex; gap: .45rem; margin: 0 0 1rem; flex-wrap: wrap; }
.tabs a {
  padding: .45rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-soft);
  text-decoration: none; font-size: .84rem; font-weight: 700;
  transition: color .15s, border-color .15s;
}
.tabs a:hover { color: var(--text); }
.tabs a.active { background: #0d2119; color: var(--green); border-color: #1a3a2a; }

/* ── Contact strip ── */
.contact-strip {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  background: var(--tile-alt); border: 1px solid var(--border); border-radius: 12px;
  padding: .8rem 1.1rem; margin-top: 2rem; font-size: .82rem;
}
.contact-strip .cs-ico { font-size: 1.2rem; }
.contact-strip strong { display: block; font-size: .84rem; }
.contact-strip span { color: var(--text-soft); white-space: pre-line; }

/* ── Stage timeline (status lamaran) ── */
.stages { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0; }
.stages li {
  display: flex; align-items: center; gap: .35rem;
  font-size: .78rem; font-weight: 600; color: var(--text-soft);
  padding: .3rem .7rem; border: 1px solid var(--border); border-radius: 999px;
  background: var(--tile-alt);
}
.stages li.done    { color: var(--green); border-color: #1a3a2a; background: #0d2119; }
.stages li.current { color: var(--text); border-color: var(--green); }
.stages li + li::before { content: ''; }
.program-card { border: 1px solid var(--border); border-radius: 10px; padding: .8rem 1rem; margin-top: .7rem; background: var(--tile-alt); }
.program-card h3 { font-size: .95rem; margin-bottom: .2rem; }
