/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0D1B2A;
  --bg-card:  #0f2035;
  --bg-input: #0a1628;
  --border:   rgba(255,255,255,.1);
  --blue:     #1E88E5;
  --blue-dk:  #1565C0;
  --cyan:     #00BCD4;
  --white:    #FFFFFF;
  --text:     #e2e8f0;
  --text-muted: #8ba3bc;
  --red:      #EF4444;
  --green:    #22C55E;
  --amber:    #f59e0b;
  --radius:   12px;
  --radius-sm:8px;
  --transition:.22s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ===== Header ===== */
.t-header {
  background: rgba(13,27,42,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.t-header img { height: 44px; }
.t-header-text { line-height: 1.25; }
.t-header-text h1 { font-size: 15px; font-weight: 700; color: #fff; }
.t-header-text p  { font-size: 11px; color: var(--cyan); margin-top: 2px; letter-spacing: .04em; text-transform: uppercase; }
.t-header-back { margin-left: auto; font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.t-header-back:hover { color: var(--white); text-decoration: none; }

/* ===== Page wrapper ===== */
.t-page { max-width: 740px; margin: 0 auto; padding: 32px 20px 80px; }

/* ===== Hero banner ===== */
.t-hero {
  background: linear-gradient(135deg, #0a1e38 0%, #0d2e55 60%, #1565C0 100%);
  border: 1px solid rgba(30,136,229,.25);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.t-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 40px 40px;
}
.t-hero-inner { position: relative; }
.t-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,188,212,.12); border: 1px solid rgba(0,188,212,.3);
  border-radius: 99px; padding: 4px 12px; font-size: 11px; color: var(--cyan);
  font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 12px;
}
.t-hero-badge .dot { width: 6px; height: 6px; background: var(--cyan); border-radius: 50%; }
.t-hero h2 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.t-hero p  { font-size: 13px; color: #93b8d8; line-height: 1.6; }

/* ===== Card ===== */
.t-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 16px;
}

/* ===== Section label ===== */
.t-section {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--cyan); margin: 28px 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.t-section::after {
  content: ''; flex: 1; height: 1px; background: rgba(0,188,212,.2);
}

/* ===== Form grid ===== */
.t-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.t-col-2  { grid-column: 1 / -1; }
@media(max-width: 560px) { .t-grid { grid-template-columns: 1fr; } .t-card { padding: 18px; } .t-hero { padding: 20px; } }

/* ===== Form group ===== */
.t-group { display: flex; flex-direction: column; gap: 6px; }
.t-label { font-size: 12px; font-weight: 600; color: #93b8d8; letter-spacing: .03em; }
.t-label .req { color: var(--red); margin-left: 2px; }

/* ===== Inputs ===== */
.t-input, .t-select, .t-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.t-input::placeholder, .t-textarea::placeholder { color: #4a6278; }
.t-input:focus, .t-select:focus, .t-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,136,229,.15);
}
.t-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238ba3bc' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.t-select option { background: #0d2035; color: #e2e8f0; }
.t-textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.t-input-lain { display: none; margin-top: 8px; }
.t-input-lain.show { display: block; }

/* ===== Upload KTP ===== */
.t-upload {
  border: 2px dashed rgba(30,136,229,.35);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  background: rgba(10,22,40,.5);
}
.t-upload:hover, .t-upload.drag { border-color: var(--blue); background: rgba(30,136,229,.07); }
.t-upload input[type=file] { display: none; }
.t-upload-icon { font-size: 32px; margin-bottom: 10px; }
.t-upload-text { font-size: 13px; color: var(--text-muted); }
.t-upload-hint { font-size: 11px; color: #4a6278; margin-top: 4px; }
.t-upload-fname { font-size: 12px; color: var(--cyan); margin-top: 8px; font-weight: 600; display: none; }
.t-upload-fname.show { display: block; }
.t-preview {
  max-width: 100%; max-height: 200px; border-radius: var(--radius-sm);
  margin-top: 12px; border: 1px solid rgba(255,255,255,.1); display: none;
}
.t-preview.show { display: block; margin: 12px auto 0; }

/* ===== Submit button ===== */
.t-agree-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.t-agree-wrap:hover {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.14);
}
.t-agree-cb {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--cyan);
  cursor: pointer;
}
.t-agree-text {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.6;
}
.t-agree-text strong {
  color: #cbd5e1;
  font-weight: 600;
}

.t-btn-submit {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--blue-dk), var(--blue));
  color: #fff; border: none; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700; font-family: inherit;
  cursor: pointer; margin-top: 28px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity var(--transition), transform .1s;
  letter-spacing: .3px;
}
.t-btn-submit:hover { opacity: .9; transform: translateY(-1px); }
.t-btn-submit:active { transform: translateY(0); }

/* ===== Alert ===== */
.t-alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 13px; margin-bottom: 20px; line-height: 1.6;
}
.t-alert-error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; }
.t-alert-error ul { padding-left: 18px; margin-top: 4px; }

.t-validation-error {
  display: none;
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.3);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  color: #fca5a5;
  font-size: 13px;
  line-height: 1.6;
}
.t-validation-error strong { color: #fca5a5; display: block; margin-bottom: 4px; }
.t-validation-error ul { padding-left: 18px; margin: 0; }
.t-validation-error li { margin-bottom: 2px; }

/* ===== Success ===== */
.t-success { text-align: center; padding: 16px 0; }
.t-success-icon { font-size: 52px; margin-bottom: 14px; }
.t-success h2 { font-size: 22px; font-weight: 700; color: var(--green); margin-bottom: 8px; }
.t-success p  { font-size: 14px; color: var(--text-muted); margin-bottom: 6px; line-height: 1.6; }
.t-tiket {
  display: inline-block;
  background: rgba(34,197,94,.08); border: 2px solid rgba(34,197,94,.3);
  border-radius: var(--radius-sm); padding: 12px 32px; margin: 16px 0;
  font-size: 22px; font-weight: 800; color: var(--green); letter-spacing: 3px;
}
.t-info-box {
  background: rgba(30,136,229,.08); border: 1px solid rgba(30,136,229,.25);
  border-radius: var(--radius-sm); padding: 14px 16px;
  font-size: 13px; color: #93c5fd; margin-top: 18px; text-align: left; line-height: 1.7;
}
.t-link { color: var(--cyan); font-weight: 600; }

/* ===== Status page ===== */
.t-search-wrap { display: flex; gap: 8px; margin-bottom: 24px; }
.t-search-wrap .t-input { flex: 1; }
.t-search-btn {
  background: var(--blue); color: #fff; border: none; border-radius: var(--radius-sm);
  padding: 10px 20px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; font-family: inherit;
}
.t-search-btn:hover { background: var(--blue-dk); }
.t-status-box {
  border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.t-status-pending  { background: rgba(245,158,11,.08); border: 1.5px solid rgba(245,158,11,.3); }
.t-status-approved { background: rgba(34,197,94,.08);  border: 1.5px solid rgba(34,197,94,.3); }
.t-status-rejected { background: rgba(239,68,68,.08);  border: 1.5px solid rgba(239,68,68,.3); }
.t-status-completed{ background: rgba(30,136,229,.08); border: 1.5px solid rgba(30,136,229,.3); }
.t-status-icon  { font-size: 26px; }
.t-status-label { font-size: 15px; font-weight: 700; }
.t-status-code  { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.t-status-pending  .t-status-label { color: var(--amber); }
.t-status-approved .t-status-label { color: var(--green); }
.t-status-rejected .t-status-label { color: var(--red); }
.t-status-completed .t-status-label { color: #93c5fd; }
.t-detail-table { width: 100%; border-collapse: collapse; }
.t-detail-table tr td { padding: 9px 0; font-size: 13px; vertical-align: top; border-bottom: 1px solid rgba(255,255,255,.05); }
.t-detail-table tr:last-child td { border-bottom: none; }
.t-detail-table tr td:first-child { color: var(--text-muted); width: 42%; padding-right: 12px; }
.t-qr { text-align: center; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--border); }
.t-qr img { width: 160px; border-radius: var(--radius-sm); border: 1px solid var(--border); margin: 0 auto 8px; }
.t-qr p { font-size: 11px; color: var(--text-muted); }
.t-no-result { text-align: center; padding: 28px; color: var(--text-muted); font-size: 14px; }
.t-back { display: inline-flex; align-items: center; gap: 5px; margin-top: 20px; font-size: 13px; color: var(--text-muted); }
.t-back:hover { color: var(--white); text-decoration: none; }
.t-page-narrow { max-width: 580px; }
.t-optional-label { font-size: 10px; font-weight: 400; color: var(--text-muted); margin-left: 4px; text-transform: none; letter-spacing: 0; }

/* Push Notification opt-in box */
.t-notif-box { background: rgba(0,188,212,.06); border: 1.5px solid rgba(0,188,212,.25); border-radius: var(--radius); padding: 20px; margin: 20px 0; text-align: center; }
.t-notif-icon { font-size: 28px; margin-bottom: 8px; }
.t-notif-title { font-weight: 700; font-size: 15px; color: var(--white); margin: 0 0 4px; }
.t-notif-desc { font-size: 13px; color: var(--text-muted); margin: 0 0 14px; }
.t-btn-notif { display: inline-flex; align-items: center; gap: 6px; background: #0e7490; color: #fff; border: none; border-radius: 8px; padding: 11px 24px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s; }
.t-btn-notif:hover:not(:disabled) { background: #0891b2; }
.t-btn-notif:disabled { opacity: .7; cursor: default; }

/* OCR button */
.t-btn-ocr {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid rgba(0,188,212,.35);
  background: rgba(0,188,212,.08);
  color: #67e8f9;
  font-size: 12px;
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .3px;
  transition: background .2s, border-color .2s, color .2s;
}
.t-btn-ocr:hover {
  background: rgba(0,188,212,.16);
  border-color: rgba(0,188,212,.6);
  color: #a5f3fc;
}
.t-btn-ocr:disabled {
  opacity: .45;
  cursor: default;
  pointer-events: none;
}
.t-ocr-note { font-size: 10px !important; color: #475569 !important; margin-top: 4px; font-style: italic !important; }

/* KTP landscape hint */
.t-ktp-landscape-hint { display:flex; align-items:center; gap:10px; margin:8px 0 4px; color:#64748b; font-size:12px; }
.t-ktp-landscape-hint svg { flex-shrink:0; opacity:.7; }
.t-ktp-landscape-hint strong { color:#00BCD4; }
.t-orient-warn { font-size:12px; color:#fbbf24; background:rgba(251,191,36,.08); border:1px solid rgba(251,191,36,.25); border-radius:8px; padding:8px 12px; margin-top:8px; display:none; }

.t-ocr-status {
  display: none;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.5;
  border: 1px solid rgba(0,188,212,.25);
  background: rgba(0,188,212,.07);
  color: #e2e8f0;
}
.t-ocr-status.is-warn {
  border-color: rgba(251,191,36,.25);
  background: rgba(251,191,36,.07);
  color: #fbbf24;
}
.t-ocr-status.is-info {
  border-color: rgba(148,163,184,.2);
  background: rgba(148,163,184,.06);
  color: #94a3b8;
}

/* ===== Utility helpers (CSP-safe, menggantikan inline style) — 17 Apr 2026 ===== */
.t-card--spaced       { margin-top: 32px; }
.t-status--spaced     { margin: 20px 0; }
.t-flex-center        { display: flex; align-items: center; gap: 12px; }
.t-icon-lg            { font-size: 28px; }
.t-table--spaced      { margin: 16px 0 24px; }
.t-btn--link          { display: inline-block; text-align: center; text-decoration: none; }
.t-btn--link-spaced   { display: inline-block; text-align: center; text-decoration: none; margin-top: 20px; }
.t-text-cyan          { color: var(--cyan); }
.t-hidden             { display: none; }
.t-notif-info         { display: none; font-size: 12px; margin-top: 8px; }
