/* ============================================================
   NEXA PTSP — gaya tambahan di atas style.css NEXA AKADEMIK
   ============================================================ */
.bg-orange { background: #FFEDD5; color: #C2410C; }
.bg-gray { background: #F3F4F6; color: #4B5563; }

/* ---------- Landing publik ---------- */
.landing-body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(251,191,36,.25), transparent 60%),
    radial-gradient(800px 520px at -10% 15%, rgba(34,197,94,.18), transparent 60%),
    radial-gradient(700px 500px at 55% 115%, rgba(14,165,233,.14), transparent 60%),
    linear-gradient(160deg, #F7FCF4 0%, #FDFBF1 55%, #F3FBFD 100%);
  background-attachment: fixed;
  min-height: 100vh;
}
.landing { max-width: 1000px; margin: 0 auto; padding: 18px 18px 40px; }
.landing-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.landing-brand { display: flex; align-items: center; gap: 10px; }
.hero { text-align: center; padding: 44px 8px 10px; }
.hero-school {
  display: inline-block; background: rgba(255,255,255,.85); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 18px; font-size: 13px; font-weight: 700; color: var(--green-dark);
  letter-spacing: .02em; margin-bottom: 14px;
}
.hero h1 {
  margin: 0; font-size: clamp(34px, 7vw, 56px); font-weight: 900; letter-spacing: .01em;
  background: linear-gradient(120deg, #15803D 10%, #16A34A 45%, #F59E0B 95%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { color: var(--muted); font-size: 15.5px; line-height: 1.6; margin: 12px 0 6px; }
.hero-date { color: var(--green-dark); font-size: 13px; font-weight: 600; margin-top: 10px; }
.landing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px;
  margin-top: 38px;
}
.tile {
  background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 22px;
  padding: 24px 22px; text-align: center; transition: transform .15s ease, box-shadow .15s ease;
  display: block; color: var(--ink); text-decoration: none;
  box-shadow: 0 4px 18px rgba(22,101,52,.06);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tile-ico {
  width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 20px; font-size: 30px;
  display: flex; align-items: center; justify-content: center;
}
.tile-green .tile-ico { background: var(--green-soft); }
.tile-yellow .tile-ico { background: var(--yellow-soft); }
.tile-sky .tile-ico { background: var(--sky-soft); }
.tile-violet .tile-ico { background: var(--violet-soft); }
.tile-name { font-weight: 800; font-size: 16px; margin-bottom: 6px; }
.tile-desc { color: var(--muted); font-size: 13px; line-height: 1.5; min-height: 38px; }
.tile-go { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 13px; }
.tile-green .tile-go { color: var(--green-dark); }
.tile-yellow .tile-go { color: #B45309; }
.tile-sky .tile-go { color: #0369A1; }
.tile-violet .tile-go { color: #6D28D9; }
.landing-foot { text-align: center; margin-top: 44px; line-height: 1.7; }

/* ---------- Notifikasi (topbar) ---------- */
.notif-badge {
  position: relative; top: -7px; left: -2px;
  display: inline-block; min-width: 17px; height: 17px; line-height: 17px;
  background: var(--red); color: #fff; border-radius: 999px; font-size: 10px; font-weight: 800;
  text-align: center; padding: 0 4px;
}

/* ---------- Kontrol form ---------- */
.radio-inline { display: inline-flex; align-items: center; gap: 6px; margin-right: 18px; font-size: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .field-full { grid-column: 1 / -1; }
.upload-list li { font-size: 13.5px; }

/* ---------- Kartu layanan publik ---------- */
.layanan-card { display: flex; flex-direction: column; gap: 8px; }
.layanan-card .lkode { display: inline-block; background: var(--green-soft); color: var(--green-dark); font-weight: 700; font-size: 11.5px; border-radius: 8px; padding: 3px 10px; }
.layanan-card h3 { margin: 0; font-size: 16px; }
.layanan-card p { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0; flex: 1; }
.layanan-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.layanan-meta span { font-size: 11.5px; color: #4B5563; background: #F1F5F3; border-radius: 999px; padding: 4px 10px; }

/* ---------- Alur / status permohonan ---------- */
.flow-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }
.flow-chip {
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: #4B5563;
}
.flow-chip.done { background: var(--green-soft); border-color: transparent; color: var(--green-dark); }
.flow-chip.cur { background: linear-gradient(135deg, var(--yellow), #FBBF24); border-color: transparent; color: #7C2D12; box-shadow: 0 3px 10px rgba(245,158,11,.3); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 18px 34px; }
.timeline li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid var(--green-2);
}
.timeline li.tl-yellow::before { border-color: var(--yellow); }
.timeline li.tl-red::before { border-color: var(--red); }
.timeline li.tl-gray::before { border-color: #CBD5E1; }
.timeline .tl-time { font-size: 11.5px; color: var(--muted); }
.timeline .tl-title { font-weight: 700; font-size: 13.5px; }
.timeline .tl-note { font-size: 12.5px; color: #4B5563; margin-top: 3px; white-space: pre-line; }

/* Kartu tiket (hasil ajukan & tracking) */
.ticket {
  text-align: center; padding: 26px 20px;
  border: 1.5px dashed #BBE9CD; border-radius: 20px; background: #F4FBF6;
}
.ticket .t-no { font-size: clamp(17px, 3.4vw, 24px); font-weight: 900; color: var(--green-dark); letter-spacing: .02em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.ticket .t-ico { font-size: 44px; display: block; margin-bottom: 8px; }
.ticket .t-sub { color: var(--muted); font-size: 13.5px; margin-top: 8px; line-height: 1.6; }

/* ---------- Buku tamu kiosk/self ---------- */
.tamu-hero { text-align: center; padding: 18px 6px 6px; }
.tamu-hero .logo-big { font-size: 46px; }
.tamu-hero h1 { margin: 6px 0 2px; font-size: 22px; font-weight: 800; color: var(--green-dark); }
.tamu-hero .sub { color: var(--muted); font-size: 13.5px; }
.camera-box { position: relative; background: #0F172A; border-radius: 20px; overflow: hidden; min-height: 240px; }
.camera-box video { width: 100%; display: block; }
.camera-box .cam-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #94A3B8; flex-direction: column; gap: 10px; }

/* ---------- Bel Madrasah ---------- */
.bell-now { text-align: center; padding: 8px; }
.bell-next-time { font-size: clamp(44px, 10vw, 84px); font-weight: 900; line-height: 1; color: var(--ink); letter-spacing: .02em; }
.bell-next-label { font-weight: 700; color: var(--green-dark); margin-top: 6px; font-size: 16px; }
.bell-next-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.bell-status { display: inline-block; margin-top: 12px; padding: 5px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.bell-status.mode-normal { background: var(--green-soft); color: var(--green-dark); }
.bell-status.mode-libur, .bell-status.mode-manual { background: var(--yellow-soft); color: #B45309; }
.bell-status.mode-ujian, .bell-status.mode-ramadhan { background: var(--violet-soft); color: #6D28D9; }
.bell-row { display: flex; align-items: center; gap: 14px; padding: 11px 4px; border-bottom: 1px dashed var(--line); font-size: 14px; }
.bell-row:last-child { border-bottom: 0; }
.bell-row .br-time { font-weight: 800; font-family: ui-monospace, Menlo, monospace; width: 56px; }
.bell-row .br-label { flex: 1; }
.bell-row.next { background: var(--yellow-soft); border-radius: 12px; padding: 12px 14px; margin: 4px -10px; border-bottom: 0; }
.bell-row.done { opacity: .55; }
.bell-row .br-done-mark { color: var(--green); font-weight: 800; }
.bell-btn-big {
  display: block; width: 100%; border: 0; cursor: pointer; border-radius: 18px;
  background: linear-gradient(135deg, #F59E0B, #FBBF24); color: #7C2D12;
  font-size: 18px; font-weight: 800; padding: 18px; box-shadow: 0 8px 22px rgba(245,158,11,.4);
  transition: transform .1s ease, box-shadow .1s ease;
}
.bell-btn-big:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(245,158,11,.5); }
.bell-btn-big:active { transform: translateY(0); }
.bell-btn-big.red { background: linear-gradient(135deg, #DC2626, #EF4444); color: #fff; box-shadow: 0 8px 22px rgba(220,38,38,.35); }
.bell-btn-big.green { background: linear-gradient(135deg, #16A34A, #22C55E); color: #fff; box-shadow: 0 8px 22px rgba(22,163,74,.35); }

/* ---------- Kiosk bel ---------- */
.kiosk-body { background: #0B1220; color: #E2E8F0; margin: 0; font-family: Inter, system-ui, sans-serif; min-height: 100vh; }
.kiosk {
  min-height: 100vh; display: flex; flex-direction: column;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(245,158,11,.16), transparent 60%),
    radial-gradient(800px 480px at -10% 110%, rgba(34,197,94,.14), transparent 60%);
  padding: 26px 34px;
}
.kiosk-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.kiosk-brand { display: flex; align-items: center; gap: 12px; }
.kiosk-brand b { font-size: 17px; color: #fff; display: block; }
.kiosk-brand span { font-size: 12px; color: #94A3B8; }
.kiosk-clock { text-align: right; }
.kiosk-clock .k-time { font-size: clamp(30px, 5vw, 52px); font-weight: 800; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.kiosk-clock .k-date { color: #94A3B8; font-size: 13.5px; margin-top: 4px; }
.kiosk-main { flex: 1; display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: stretch; margin-top: 26px; }
.kiosk-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 24px; padding: 26px; }
.kiosk-next { text-align: center; display: flex; flex-direction: column; justify-content: center; }
.kiosk-next .kn-label { color: #94A3B8; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.kiosk-next .kn-time { font-size: clamp(70px, 13vw, 170px); font-weight: 900; color: #FBBF24; line-height: 1; margin: 8px 0 2px; text-shadow: 0 0 60px rgba(251,191,36,.35); font-variant-numeric: tabular-nums; }
.kiosk-next .kn-name { font-size: clamp(18px, 2.6vw, 30px); font-weight: 800; color: #fff; }
.kiosk-next .kn-sub { color: #94A3B8; margin-top: 8px; font-size: 14px; }
.kiosk-buttons { display: grid; gap: 14px; grid-template-columns: 1fr; align-content: center; }
.kiosk-buttons .btn-k {
  border: 0; cursor: pointer; border-radius: 20px; padding: 20px; font-size: clamp(15px, 2vw, 20px); font-weight: 800; color: #fff;
}
.btn-k.k-yellow { background: linear-gradient(135deg, #F59E0B, #FBBF24); color: #7C2D12; box-shadow: 0 10px 30px rgba(245,158,11,.35); }
.btn-k.k-green { background: linear-gradient(135deg, #16A34A, #22C55E); box-shadow: 0 10px 30px rgba(22,163,74,.35); }
.btn-k.k-outline { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); }
.btn-k:hover { transform: translateY(-2px); }
.kiosk-foot { text-align: center; color: #64748B; font-size: 12px; margin-top: 20px; line-height: 1.7; }
@media (max-width: 900px) {
  .kiosk-main { grid-template-columns: 1fr; }
}

/* ---------- Survei ---------- */
.star-lg { font-size: 30px; color: #D1D5DB; letter-spacing: 4px; }
.star-lg .on { color: #F59E0B; }
.star-pick { font-size: 34px; display: inline-flex; gap: 6px; cursor: pointer; user-select: none; }
.star-pick span { color: #D1D5DB; transition: transform .1s, color .1s; }
.star-pick span.on, .star-pick span:hover, .star-pick span:hover ~ span { color: #F59E0B; }
.star-pick:hover span { color: #F59E0B; }

/* ---------- Tabel ringkas ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; padding: 10px 12px; background: #F1F8F3; color: #374151; font-weight: 700; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid #EEF3EF; vertical-align: top; }
.tbl tr:hover td { background: #FAFDFB; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* Kotak ringkasan permohonan */
.sum-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.sum-box { background: #F6FAF7; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.sum-box .sb-k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.sum-box .sb-v { font-size: 15px; font-weight: 800; margin-top: 4px; word-break: break-word; }

.kop {
  display: flex; align-items: center; gap: 14px; border-bottom: 3px double #111; padding-bottom: 10px; margin-bottom: 16px;
}
.kop img { height: 64px; width: auto; }
.kop .kop-txt { text-align: center; flex: 1; line-height: 1.5; }
.kop .kop-txt .k1 { font-size: 13px; font-weight: 800; }
.kop .kop-txt .k2 { font-size: 12px; font-weight: 700; }
.kop .kop-txt .k3 { font-size: 11px; }

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .landing-grid { grid-template-columns: 1fr; }
}

/* ---------- Panel "Tambahan" di halaman Suara & Narasi (dering/narasi tambahan) ---------- */
.sub-panel {
  margin-top: 14px; padding: 14px 16px;
  background: #F7FBF8; border: 1px dashed #BFE0C8; border-radius: 14px;
}
.sub-panel .sub-title { margin: 0 0 10px; font-size: 14px; font-weight: 800; color: #14532D; }
.sub-title + .flash, .sub-panel p:last-child { margin-bottom: 0; }
