/* Palet warna diambil langsung dari sampling piksel desain yang diunggah
   (lihat juga mobile_pegawai/lib/theme/app_colors.dart - sumber yang sama). */

:root {
  --primary: #005099;
  --accent-yellow: #ffcc00;
  --accent-blue: #0085ff;
  --danger: #f41f52;
  --danger-alt: #f04438;
  --success: #30cb9d;
  --success-screen: #7db849;
  --primary-light: #9aceff;
  --field-bg: #f6f6f6;
  --heading-text: #344054;
  --name-text: #1d2939;
  --muted-text: #667085;
  --label-text: #98a2b3;
  --value-text: #48515f;
  --nav-bg: #1d2939;
  --nav-active: #93a6ff;
  --nav-inactive: #8a94a6;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: #ffffff;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  color: var(--name-text);
  -webkit-tap-highlight-color: transparent;
}

button {
  font-family: inherit;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  /* height (bukan min-height): tanpa tinggi definit di sini, rantai
     flex:1 + overflow-y:auto di .tab-content tidak pernah benar-benar
     clip - kontennya cuma ikut tumbuh, jadi tabbar floating (position:
     absolute ke #app) ikut terdorong keluar layar saat konten panjang. */
  height: 100vh;
  background: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
}

.screen {
  display: none;
  flex: 1;
  flex-direction: column;
  min-height: 100vh;
}

.screen.active {
  display: flex;
}

/* ---------- Splash ---------- */

#screen-splash {
  background: var(--primary);
  align-items: center;
  justify-content: center;
}

/* ---------- Tidak bisa terhubung ke server ---------- */

#screen-offline {
  background: var(--primary);
  padding: 60px 28px max(28px, env(safe-area-inset-bottom));
}

.offline-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
}

.offline-icon {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.offline-icon svg {
  width: 44px;
  height: 44px;
}

.offline-content h1 {
  margin: 0;
  color: #fff;
  font-size: 22px;
}

.offline-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  line-height: 1.5;
  max-width: 300px;
}

.btn-accent {
  width: 100%;
  height: 52px;
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: var(--accent-yellow);
  color: var(--name-text);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.splash-content {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
}

.splash-text {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
}

.splash-text .muted {
  display: block;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

.splash-text .strong {
  display: block;
  font-weight: 700;
}

.splash-content img {
  height: 100px;
}

/* ---------- Login ---------- */

#screen-login {
  padding: 0 24px;
}

.login-back {
  height: 48px;
  display: flex;
  align-items: center;
}

.login-back button {
  background: none;
  border: none;
  font-size: 22px;
  padding: 8px;
  margin-left: -8px;
  cursor: pointer;
  color: var(--heading-text);
  visibility: hidden;
}

.login-back.visible button {
  visibility: visible;
}

#screen-login h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--heading-text);
  margin: 8px 0 32px;
}

/* Halaman OTP (lupa password / ganti password) tidak punya padding sama
   sekali sebelumnya - kontennya mepet ke tepi kontainer HP. */

#screen-otp {
  padding: 0 24px;
}

#screen-otp h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--heading-text);
  margin: 8px 0 24px;
}

.field-label {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
  display: block;
}

.field-wrap {
  position: relative;
  margin-bottom: 20px;
}

.field-wrap input {
  width: 100%;
  border: none;
  background: var(--field-bg);
  border-radius: 16px;
  padding: 16px;
  font-size: 15px;
  color: var(--name-text);
}

.field-wrap input:focus {
  outline: 2px solid var(--primary);
}

.field-wrap .toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #98a2b3;
  font-size: 18px;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.remember-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}

.remember-wrap input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.link-danger {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

.btn-primary {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary:disabled {
  opacity: 0.6;
}

.form-error {
  color: var(--danger);
  font-size: 13px;
  margin-bottom: 8px;
  min-height: 18px;
}

.login-terms {
  margin-top: 48px;
  padding: 0 8px;
  text-align: center;
  font-size: 13px;
  color: #98a2b3;
}

.login-terms strong {
  color: #333;
  font-weight: 600;
}

/* ---------- Shell: tab content + bottom nav ---------- */

#screen-home {
  padding: 0;
}

.tab-content {
  flex: 1;
  min-height: 0;
  /* tanpa ini, overflow-y:auto tidak efektif - flex item default
                    min-height:auto bikin kontainer ikut tumbuh sesuai konten,
                    bukan discroll di dalam, jadi tabbar floating ikut terdorong
                    keluar layar */
  overflow-y: auto;
  padding-bottom: calc(100px + env(safe-area-inset-bottom));
}

.tab-page {
  display: none;
}

.tab-page.active {
  display: block;
}

/* Floating, ala tabbar Instagram: lepas dari tepi layar, melayang di atas
   konten (position: absolute terhadap #app), warna tetap --nav-bg. */

.bottom-nav {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  background: var(--nav-bg);
  display: flex;
  padding: 12px 0;
  border-radius: 28px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  z-index: 20;
}

.bottom-nav button {
  flex: 1;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--nav-inactive);
  cursor: pointer;
  padding: 4px 0;
}

.bottom-nav button svg {
  width: 24px;
  height: 24px;
  stroke: var(--nav-inactive);
  fill: none;
}

.bottom-nav button .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: transparent;
}

.bottom-nav button span.label {
  font-size: 12px;
}

.bottom-nav button.active {
  color: var(--nav-active);
}

.bottom-nav button.active svg {
  stroke: var(--nav-active);
}

.bottom-nav button.active .dot {
  background: var(--nav-active);
}

/* ---------- Beranda ---------- */

.beranda-header {
  background: var(--primary);
  padding: 30% 25px 40% 25px;
  display: flex;
  align-items: flex-start;
  color: #fff;
  border-radius: 0 0 40% 40%;
}

.beranda-header .title {
  flex: 1;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.beranda-header .title .muted {
  display: block;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
}

.beranda-header .subtitle {
  margin-top: 8px;
  color: var(--accent-yellow);
  font-weight: 700;
  font-size: 14px;
}

.beranda-header .bus-icon {
  width: 120px;
  height: auto;
  flex-shrink: 0;
}

.beranda-body {
  padding: 0 20px 24px;
  margin-top: -35%;
}

.kartu-jadwal {
  background: #fff;
  border-radius: 24px;
  padding: 20px;
  min-height: 200px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.kartu-jadwal h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.info-row svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  fill: none;
  flex-shrink: 0;
}

.divider {
  height: 1px;
  background: var(--field-bg);
  margin: 20px 0;
}

.btn-pesan {
  margin-top: 20px;
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
}

/* Dipakai saat pegawai sudah terdaftar di jadwal ini (tombol "PESAN SEKARANG"
   berubah jadi "DETAIL") - warna sama dengan layar hasil Berhasil. */

.btn-detail-jadwal {
  background: var(--success-screen);
}

/* Dipakai saat belum masuk jam booking atau kuota sudah penuh - tombol
   dinonaktifkan (bukan disembunyikan), supaya pegawai tetap tahu kenapa. */

.btn-pesan-disabled {
  background: var(--nav-inactive);
  cursor: not-allowed;
}

.keterangan-terdaftar {
  text-align: center;
  color: var(--muted-text);
  font-size: 13px;
  margin: 10px 0 0;
}

.btn-pesan:disabled {
  opacity: 0.5;
}

.seksi-informasi {
  margin-top: 28px;
}

.seksi-informasi h3 {
  font-size: 18px;
  margin: 0 0 12px;
}

.info-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
}

.info-placeholder {
  /* Samakan persis dengan ukuran .info-card-real (kartu sungguhan setelah
     dimuat) - dulu 96x120 vs 150x200, bikin tata letak "melompat" begitu
     data datang. */
  width: 150px;
  height: 200px;
  flex-shrink: 0;
  border-radius: 20px;
  background: var(--field-bg);
  border: 1px solid rgba(0, 80, 153, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c0c4cc;
  font-size: 28px;
  overflow: hidden;
}

/* ---------- Generic page header (Riwayat / Jadwal) ---------- */

.page-header {
  padding: 20px 20px 8px;
  font-size: 22px;
  font-weight: 700;
}

.badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge.blue {
  background: #e3edf8;
  color: var(--primary);
}

.badge.green {
  background: #e3f9f1;
  color: var(--success);
}

.badge.red {
  background: #fde8ec;
  color: var(--danger);
}

.badge.gray {
  background: var(--field-bg);
  color: var(--muted-text);
}

.empty-state {
  padding: 80px 24px 24px;
  text-align: center;
  color: var(--muted-text);
}

.card-jadwal {
  margin: 0 20px 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--field-bg);
}

.card-jadwal .tanggal {
  font-weight: 700;
  margin-bottom: 12px;
}

/* .trip-row dipakai juga di luar .card-jadwal (modal Konfirmasi Booking),
   jadi aturan ukurannya tidak digantungkan ke .card-jadwal supaya ikon tidak
   melebar tanpa batas di konteks lain. */

.trip-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

.trip-row svg {
  width: 18px;
  height: 18px;
  stroke: var(--name-text);
  fill: none;
  margin-top: 2px;
  flex-shrink: 0;
}

.card-riwayat {
  cursor: pointer;
}

.trip-row-isi {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.btn-outline-primary {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--primary);
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}

.btn-outline-primary:disabled {
  opacity: 0.5;
  border-color: #ccc;
  color: #999;
}

/* ---------- Profil ---------- */

.profil-wrap {
  padding: 24px 20px;
}

.avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.avatar {
  position: relative;
  width: 108px;
  height: 108px;
}

.avatar .circle {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--field-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
}

.avatar .edit-badge {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

.profil-nama {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
}

.profil-nip {
  text-align: center;
  color: var(--muted-text);
  margin: 0 0 20px;
}

.banner {
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.banner.success {
  background: var(--success);
}

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

.banner svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
  flex-shrink: 0;
}

.info-card {
  margin-top: 24px;
  background: #fff;
  border-radius: 20px;
  padding: 0 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.info-card .row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--field-bg);
}

.info-card .row:last-child {
  border-bottom: none;
}

.info-card .row .label {
  color: var(--label-text);
  width: 90px;
  flex-shrink: 0;
}

.info-card .row .value {
  color: var(--value-text);
  font-weight: 500;
  text-align: right;
}

.btn-ganti-password {
  margin-top: 24px;
  width: 100%;
  height: 52px;
  border-radius: 16px;
  border: 1px solid #d0d5dd;
  background: var(--field-bg);
  color: var(--name-text);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.btn-ganti-password svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-blue);
  fill: none;
}

.btn-keluar {
  margin-top: 12px;
  width: 100%;
  height: 52px;
  border-radius: 16px;
  border: none;
  background: var(--danger);
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.btn-keluar svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
}

/* ---------- Toast / snackbar ---------- */

#toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translate(-50%, 20px);
  background: var(--name-text);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  max-width: 85%;
  text-align: center;
  z-index: 50;
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.loading-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--field-bg);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}

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

/* ---------- Modal validasi booking ---------- */

#modalValidasi {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 30, 45, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#modalValidasi.show {
  display: flex;
}

.modal-card {
  background: #fff;
  border-radius: 28px;
  padding: 48px 28px;
  width: 100%;
  max-width: 340px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.bus-spinner {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 28px;
}

.bus-spinner svg {
  width: 100%;
  height: 100%;
  animation: spin 1.1s linear infinite;
}

.bus-spinner .bus-emoji {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58px;
  height: auto;
}

.modal-card p {
  margin: 0;
  color: var(--muted-text);
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- Layar hasil (Gagal / Berhasil) ---------- */

#screen-hasil {
  align-items: center;
  justify-content: space-between;
  padding: 0 0 32px;
  text-align: center;
  color: #fff;
}

#screen-hasil.gagal {
  background: var(--danger-alt);
}

#screen-hasil.berhasil {
  background: var(--success-screen);
}

.hasil-tengah {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
}

.hasil-ikon {
  width: 96px;
  height: 96px;
  margin-bottom: 24px;
}

.hasil-tengah h1 {
  font-size: 26px;
  margin: 0 0 12px;
}

.hasil-tengah p {
  margin: 0;
  font-size: 15px;
  opacity: 0.92;
  line-height: 1.5;
}

.btn-kembali {
  width: calc(100% - 48px);
  margin: 0 24px;
  height: 52px;
  border: none;
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

#screen-hasil.gagal .btn-kembali {
  color: var(--danger-alt);
}

#screen-hasil.berhasil .btn-kembali {
  color: var(--success-screen);
}

/* ---------- Detail Perjalanan ---------- */

.detail-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
}

.detail-header button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--name-text);
  padding: 4px;
}

.detail-header h1 {
  flex: 1;
  text-align: center;
  font-size: 17px;
  margin: 0;
  margin-right: 28px;
  /* seimbangkan lebar tombol back supaya judul benar-benar center */
}

.tiket-wrap {
  margin: 0 20px 20px;
  position: relative;
  background: #fbfbfc;
  border-radius: 24px;
}

.tiket-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.tiket-qr {
  display: flex;
  justify-content: center;
  padding: 28px 20px 20px;
}

.tiket-potong {
  position: relative;
  border-top: 2px dashed var(--field-bg);
  margin: 0 20px;
}

.tiket-potong::before,
.tiket-potong::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fbfbfc;
}

.tiket-potong::before {
  left: -32px;
}

.tiket-potong::after {
  right: -32px;
}

.tiket-info {
  padding: 20px;
}

.tiket-info .tanggal {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.tiket-info .tiket-nopol {
  font-size: 14px;
  color: var(--value-text);
  margin-bottom: 10px;
}

.tiket-info .tiket-nopol strong {
  color: var(--primary);
}

.tiket-info .catatan {
  color: var(--muted-text);
  font-size: 13px;
  margin-bottom: 20px;
}

.tiket-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 18px;
  column-gap: 12px;
}

.tiket-grid .label {
  display: block;
  color: var(--label-text);
  font-size: 13px;
  margin-bottom: 4px;
}

.tiket-grid .value {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--name-text);
}

.tiket-grid .value.belum {
  color: var(--danger-alt);
  font-weight: 600;
}

/* ---------- Konfirmasi booking (slide to verify) ---------- */

#modalKonfirmasiBooking {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 30, 45, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#modalKonfirmasiBooking.show {
  display: flex;
}

.konfirmasi-booking-card {
  text-align: left;
  max-width: 360px;
}

.konfirmasi-booking-card h2 {
  text-align: center;
  margin: 0 0 4px;
}

.konfirmasi-tanggal {
  text-align: center;
  color: var(--muted-text);
  font-size: 14px;
  margin: 0 0 20px;
}

.konfirmasi-trip {
  margin-bottom: 8px;
}

.slide-track {
  position: relative;
  height: 56px;
  border-radius: 999px;
  background: var(--field-bg);
  display: flex;
  align-items: center;
  overflow: hidden;
  margin: 20px 0 12px;
  user-select: none;
}

.slide-label {
  width: 100%;
  text-align: center;
  color: var(--muted-text);
  font-weight: 600;
  font-size: 14px;
  pointer-events: none;
  transition: color 0.2s ease;
}

.slide-track.verified .slide-label {
  color: var(--success);
}

.slide-thumb {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  cursor: grab;
  touch-action: none;
}

.slide-track.verified .slide-thumb {
  background: var(--success);
}

.btn-text-batal {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--muted-text);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 0 0;
  cursor: pointer;
}

/* ---------- Konfirmasi logout ---------- */

#modalKonfirmasiKeluar {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 30, 45, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#modalKonfirmasiKeluar.show {
  display: flex;
}

.confirm-card {
  background: #fff;
  border-radius: 28px;
  padding: 36px 28px 28px;
  width: 100%;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.confirm-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 3px solid var(--danger);
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
}

.confirm-card h2 {
  margin: 0 0 6px;
  font-size: 19px;
  color: var(--name-text);
}

.confirm-card p {
  margin: 0 0 24px;
  color: var(--muted-text);
  font-size: 14px;
}

.confirm-buttons {
  display: flex;
  gap: 12px;
}

.confirm-buttons button {
  flex: 1;
  height: 48px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.btn-confirm-outline {
  background: #fff;
  border: 1.5px solid var(--danger);
  color: var(--danger);
}

.btn-confirm-filled {
  background: var(--primary);
  border: none;
  color: #fff;
}

/* ---------- Kartu Informasi (thumbnail asli, klik -> Detail Informasi) ---------- */

.info-card-real {
  width: 150px;
  height: 200px;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  background: var(--field-bg);
}

.info-card-real img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.info-card-real .judul-mini {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  text-align: left;
  line-height: 1.3;
}

/* ---------- Detail Informasi ---------- */

.informasi-card {
  margin: 0 20px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.informasi-card img {
  width: 100%;
  display: block;
  background: var(--field-bg);
}

.informasi-card .isi-wrap {
  padding: 20px;
}

.informasi-card h2 {
  margin: 0 0 4px;
  font-size: 18px;
  color: var(--name-text);
}

.informasi-card .tanggal-kirim {
  color: var(--muted-text);
  font-size: 12px;
  margin-bottom: 16px;
}

.informasi-card p {
  margin: 0;
  color: var(--value-text);
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-line;
}
