@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-latin-700-normal.woff2') format('woff2');
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
  min-height: 100vh;
  padding: 40px 16px;
}

.capitalize {
  text-transform: capitalize;
}

.page {
  max-width: 620px;
  margin: 0 auto;
}

.header {
  text-align: center;
  margin-bottom: 24px;
}

.icon-circle {
  width: 64px;
  height: 64px;
  background: #dbeafe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.header h1 {
  font-size: 26px;
  margin: 0 0 6px;
  color: #0f172a;
}

.subtitle {
  color: #64748b;
  margin: 0;
  font-size: 15px;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.error-box {
  padding: 24px;
  color: #b91c1c;
  text-align: center;
}

.status-bar {
  background: #d1fae5;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-title {
  color: #15803d;
  font-weight: 600;
  font-size: 14px;
}

.status-value {
  color: #166534;
  font-weight: 700;
  font-size: 13px;
}

.status-right {
  text-align: right;
}

.nim-label {
  color: #15803d;
  font-size: 12px;
}

.nim-value {
  color: #14532d;
  font-weight: 700;
  font-size: 15px;
}

.profile {
  display: flex;
  gap: 20px;
  padding: 24px;
}

.foto {
  width: 110px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  background: #e2e8f0;
  flex-shrink: 0;
}

.profile-info {
  flex: 1;
}

.nama {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.label {
  color: #64748b;
  font-size: 13px;
  margin-bottom: 3px;
}

.value {
  color: #0f172a;
  font-weight: 600;
  font-size: 14.5px;
}

.kontak-box {
  margin: 0 24px;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 18px 20px;
}

.kontak-title {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
  font-size: 15px;
}

.kontak-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-box {
  margin: 20px 24px 24px;
  background: #eff6ff;
  border-radius: 10px;
  padding: 18px 20px;
}

.detail-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #1d4ed8;
  margin-bottom: 12px;
  font-size: 15px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  color: #1d4ed8;
  font-size: 14px;
  padding: 4px 0;
}

.detail-row .ok {
  color: #15803d;
  font-weight: 600;
}

.actions {
  display: flex;
  gap: 12px;
  padding: 0 24px 24px;
}

.btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #2563eb;
  color: #fff;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-secondary {
  background: #fff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
  background: #f8fafc;
}

.gate {
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #dbeafe;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.gate-text {
  color: #64748b;
  font-size: 14px;
}

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

@media (max-width: 480px) {
  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .info-grid {
    text-align: left;
    width: 100%;
  }
  .actions {
    flex-direction: column;
  }
}
