* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #1a5c2e 0%, #2d8a4e 50%, #1a5c2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-wrapper {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.login-wrapper.has-cek-result {
  max-width: 460px;
}

.login-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  border: 3px solid #f5c518;
}

.logo-section {
  position: relative;
  background: linear-gradient(180deg, #2d8a4e 0%, #1a5c2e 100%);
  padding: 32px 24px 24px;
  text-align: center;
  color: #ffffff;
}

.home-login-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.home-login-btn svg {
  width: 18px;
  height: 18px;
}

.home-login-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.logo-section h1 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1.3;
}

.subtitle-tagline {
  margin-top: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #ffffff;
  opacity: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  line-height: 1.4;
}

.subtitle-institution {
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  color: #ffffff;
  opacity: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  line-height: 1.4;
}

.home-panel {
  padding: 24px 28px 8px;
}

.home-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 0;
  border: none;
  background: none;
  color: #1a5c2e;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.home-back-btn svg {
  width: 16px;
  height: 16px;
}

.home-back-btn:hover {
  text-decoration: underline;
}

.cek-hafalan-title {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
  color: #1a5c2e;
  margin-bottom: 14px;
  text-align: center;
}

.cek-hafalan-form .form-group-no-label {
  margin-bottom: 14px;
}

.cek-nisn-input {
  text-align: center;
}

.cek-nisn-input::placeholder {
  text-align: center;
}

.cek-hafalan-form {
  margin-bottom: 16px;
}

.login-form {
  padding: 0 0 12px;
}

.login-security-notice {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.45;
  border: 1px solid transparent;
}

.login-security-notice.is-info {
  background: #eef6ff;
  border-color: #b8d4f5;
  color: #1d4f91;
}

.login-security-notice.is-warning {
  background: #fff8e8;
  border-color: #f0d48a;
  color: #8a5a00;
}

.login-security-notice.is-locked {
  background: #fff1f1;
  border-color: #efb8b8;
  color: #9b1c1c;
}

.login-security-notice.is-admin {
  background: #fff4f4;
  border-color: #e08a8a;
}

body.login-security-modal-open {
  overflow: hidden;
}

.login-security-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(8, 35, 20, 0.78);
  backdrop-filter: blur(8px);
}

.login-security-modal-overlay[hidden] {
  display: none !important;
}

.login-security-modal {
  width: min(100%, 360px);
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  border: 3px solid #f5c518;
  animation: loginSecurityModalIn 0.28s ease;
}

@keyframes loginSecurityModalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-security-modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 20px 18px;
  color: #ffffff;
}

.login-security-modal-header.is-info {
  background: linear-gradient(135deg, #2f80ed 0%, #1b5fbf 100%);
}

.login-security-modal-header.is-warning {
  background: linear-gradient(135deg, #f5a623 0%, #e67e00 100%);
}

.login-security-modal-header.is-locked {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.login-security-modal-header.is-admin {
  background: linear-gradient(135deg, #c0392b 0%, #8e1c12 55%, #1a5c2e 100%);
}

.login-security-modal-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.login-security-modal-icon svg {
  width: 30px;
  height: 30px;
}

.login-security-modal-body {
  padding: 18px 20px 8px;
  text-align: center;
}

.login-security-modal-title {
  margin: 0 0 10px;
  font-size: 1.12rem;
  font-weight: 800;
  color: #1a5c2e;
}

.login-security-modal.is-locked .login-security-modal-title,
.login-security-modal.is-admin .login-security-modal-title {
  color: #b42318;
}

.login-security-modal.is-warning .login-security-modal-title {
  color: #9a5b00;
}

.login-security-modal.is-info .login-security-modal-title {
  color: #1b5fbf;
}

.login-security-modal-message {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #444;
}

.login-security-modal-countdown {
  margin-top: 16px;
  padding: 14px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff8df 0%, #fff3c4 100%);
  border: 2px solid #f5c518;
}

.login-security-modal.is-locked .login-security-modal-countdown,
.login-security-modal.is-admin .login-security-modal-countdown {
  background: linear-gradient(135deg, #fff1f1 0%, #ffe0e0 100%);
  border-color: #efb8b8;
}

.login-security-modal-countdown-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a5a00;
  margin-bottom: 6px;
}

.login-security-modal.is-locked .login-security-modal-countdown-label,
.login-security-modal.is-admin .login-security-modal-countdown-label {
  color: #9b1c1c;
}

.login-security-modal-countdown-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1a5c2e;
  line-height: 1.2;
}

.login-security-modal.is-locked .login-security-modal-countdown-value,
.login-security-modal.is-admin .login-security-modal-countdown-value {
  color: #b42318;
}

.login-security-modal-btn {
  display: block;
  width: calc(100% - 40px);
  margin: 16px 20px 20px;
  padding: 13px 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #2d8a4e, #1a5c2e);
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 3px solid #f5c518;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.login-security-modal-btn:hover,
.login-security-modal-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(26, 92, 46, 0.35);
}

@media (min-width: 769px) {
  .login-security-modal-overlay {
    display: none !important;
  }
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #2d8a4e;
  box-shadow: 0 0 0 3px rgba(45, 138, 78, 0.15);
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 0.85rem;
}

.remember {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #555;
  cursor: pointer;
}

.remember input {
  accent-color: #2d8a4e;
}

.btn-cek-hafalan {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #2d8a4e, #1a5c2e);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  border-bottom: 3px solid #f5c518;
}

.btn-cek-hafalan:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 92, 46, 0.4);
}

.btn-cek-hafalan:disabled {
  opacity: 0.7;
  cursor: wait;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #2d8a4e, #1a5c2e);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  border-bottom: 3px solid #f5c518;
}

.btn-login-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-login:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 92, 46, 0.4);
}

.btn-login:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-login:active {
  transform: translateY(0);
}

body.cek-setoran-popup-open {
  overflow: hidden;
}

.cek-setoran-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 35, 20, 0.72);
  backdrop-filter: blur(6px);
}

.cek-setoran-popup-overlay[hidden] {
  display: none !important;
}

.cek-setoran-popup {
  position: relative;
  width: min(100%, 540px);
  height: min(92vh, 880px);
  max-height: min(92vh, 880px);
  overflow: hidden;
  border-radius: 18px;
  background: #f6fbf7;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  border: 3px solid #f5c518;
  outline: none;
  display: flex;
  flex-direction: column;
}

.cek-setoran-popup-brand.logo-section {
  position: relative;
  flex: 0 0 auto;
  padding: 24px 48px 18px;
  border-bottom: 3px solid #f5c518;
}

.cek-setoran-popup-brand.logo-section .logo {
  width: 96px;
  height: 96px;
  margin-bottom: 12px;
}

.cek-setoran-popup-brand.logo-section h1 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.cek-setoran-popup-brand.logo-section .subtitle-tagline {
  margin-top: 0;
}

.cek-setoran-popup-brand.logo-section .subtitle-institution {
  margin-top: 4px;
}

.cek-setoran-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.cek-setoran-popup-close:hover,
.cek-setoran-popup-close:focus-visible {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.cek-setoran-popup-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 18px 16px 16px;
}

.cek-setoran-santri-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #f3fbf5 55%, #fff8df 100%);
  border: 1px solid #dce9df;
  box-shadow: 0 8px 22px rgba(26, 92, 46, 0.08);
}

.cek-setoran-santri-meta {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.cek-setoran-popup-photo {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  margin: 0;
  border-radius: 999px;
  overflow: hidden;
  border: 3px solid #f5c518;
  background: linear-gradient(135deg, #edf7f0, #d8efe0);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(26, 92, 46, 0.14);
}

.cek-setoran-popup-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cek-setoran-popup-photo-fallback {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a5c2e;
}

.cek-setoran-santri-meta h3 {
  font-size: 1.05rem;
  color: #1a5c2e;
  margin-bottom: 4px;
  line-height: 1.3;
}

.cek-setoran-popup-subtitle {
  font-size: 0.78rem;
  color: #6b7a71;
  margin-bottom: 8px;
}

.cek-setoran-total-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1a5c2e, #2d8a4e);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(26, 92, 46, 0.18);
}

.cek-setoran-total-badge span {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.92;
}

.cek-setoran-total-badge strong {
  font-size: 0.82rem;
  font-weight: 700;
}

.cek-setoran-card {
  padding: 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e3ece6;
  box-shadow: 0 4px 16px rgba(26, 92, 46, 0.05);
}

.cek-setoran-card-accent {
  border-color: #d4e8da;
  background: linear-gradient(180deg, #ffffff 0%, #f7fcf8 100%);
}

.cek-setoran-privacy-note {
  font-size: 0.66rem;
  color: #7a877d;
  font-weight: 500;
}

.cek-setoran-sensitive-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cek-setoran-sensitive-row .cek-setoran-biodata-value {
  flex: 1;
  min-width: 0;
}

.cek-setoran-biodata-value.is-masked {
  letter-spacing: 0.08em;
  color: #6b7a70;
}

.cek-setoran-reveal-btn {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid #d6e4da;
  border-radius: 999px;
  background: #fff;
  color: #1a5c2e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.cek-setoran-reveal-btn:hover,
.cek-setoran-reveal-btn:focus-visible {
  background: #edf7f0;
  border-color: #1a5c2e;
}

.cek-setoran-reveal-btn.is-active {
  background: #1a5c2e;
  border-color: #1a5c2e;
  color: #fff;
}

.cek-setoran-popup-section + .cek-setoran-popup-section {
  margin-top: 12px;
}

.cek-setoran-popup-section h4 {
  font-size: 0.86rem;
  color: #1a5c2e;
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 3px solid #f5c518;
}

.cek-setoran-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.cek-setoran-section-head h4 {
  margin-bottom: 0;
}

.cek-setoran-month-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: #edf7f0;
  color: #1a5c2e;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid #d4e8da;
}

.cek-setoran-month-note {
  font-size: 0.74rem;
  color: #7a877d;
  margin-bottom: 10px;
}

.cek-setoran-biodata-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}

.cek-setoran-biodata-field {
  padding: 10px 11px;
  border-radius: 10px;
  background: #f7fbf8;
  border: 1px solid #e8f0ea;
}

.cek-setoran-biodata-label {
  display: block;
  font-size: 0.66rem;
  color: #7a877d;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cek-setoran-biodata-value {
  display: block;
  font-size: 0.8rem;
  color: #1f2d24;
  line-height: 1.35;
  word-break: break-word;
  font-weight: 600;
}

.cek-setoran-result {
  border: 1px solid #e8f0ea;
  border-radius: 12px;
  background: #fbfdfb;
  overflow: hidden;
  margin-bottom: 8px;
}

.cek-setoran-profile {
  padding: 14px 16px;
  background: linear-gradient(180deg, #edf7f0 0%, #f7fbf8 100%);
  border-bottom: 1px solid #e8f0ea;
}

.cek-setoran-profile h3 {
  font-size: 1rem;
  color: #1a5c2e;
  margin-bottom: 8px;
}

.cek-setoran-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.78rem;
  color: #5f6f65;
  margin-bottom: 8px;
}

.cek-setoran-hafalan {
  font-size: 0.84rem;
  color: #333;
  margin-bottom: 4px;
}

.cek-setoran-count {
  font-size: 0.74rem;
  color: #7a877d;
}

.cek-setoran-list {
  max-height: 240px;
  overflow-y: auto;
  padding: 2px;
}

.cek-setoran-item.is-highlight {
  border-color: #b8ddc4;
  background: linear-gradient(135deg, #f0faf3 0%, #ffffff 100%);
  box-shadow: 0 6px 18px rgba(26, 92, 46, 0.1);
  border-left: 4px solid #f5c518;
}

.cek-setoran-item {
  padding: 12px 13px;
  border: 1px solid #e3ece6;
  border-radius: 12px;
  background: #ffffff;
}

.cek-setoran-item + .cek-setoran-item {
  margin-top: 8px;
}

.cek-setoran-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.cek-setoran-item-top strong {
  font-size: 0.8rem;
  color: #1a5c2e;
}

.cek-setoran-item p {
  font-size: 0.78rem;
  color: #555;
  line-height: 1.45;
}

.cek-setoran-total {
  margin-top: 6px;
  color: #1a5c2e !important;
  font-size: 0.76rem !important;
  font-weight: 700;
}

.cek-setoran-petugas {
  margin-top: 6px;
  font-size: 0.74rem !important;
  color: #4f6158 !important;
}

.cek-setoran-petugas strong {
  color: #1a5c2e;
  font-weight: 700;
}

.cek-setoran-pembayaran-card {
  border-color: #dbeafe;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.cek-setoran-pembayaran-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #dbeafe;
  background: #fff;
}

.cek-setoran-pembayaran-status.is-lunas {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.cek-setoran-pembayaran-status.is-belum {
  border-color: #fecaca;
  background: #fef2f2;
}

.cek-setoran-pembayaran-status.is-lunas strong {
  color: #15803d;
}

.cek-setoran-pembayaran-status.is-belum strong {
  color: #b91c1c;
}

.cek-setoran-pembayaran-label {
  font-size: 0.82rem;
  color: #64748b;
}

.cek-setoran-pembayaran-status strong {
  font-size: 1.05rem;
}

.cek-setoran-pembayaran-note {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.cek-setoran-popup-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #dce9df;
  text-align: center;
  font-size: 0.68rem;
  color: #8a968f;
}

.cek-setoran-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-nilai-a {
  background: #e8f7ed;
  color: #1a5c2e;
}

.badge-nilai-b {
  background: #eef4ff;
  color: #1d4f91;
}

.badge-nilai-c {
  background: #fff7e8;
  color: #9a6700;
}

.badge-nilai-default {
  background: #f1f3f2;
  color: #5f6f65;
}

.cek-setoran-empty {
  padding: 16px 12px;
  text-align: center;
  font-size: 0.82rem;
  color: #8a968f;
}

.footer-text {
  text-align: center;
  padding: 0 28px 20px;
  font-size: 0.75rem;
  color: #999;
}

.visitor-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 28px;
  padding: 0 2px 6px;
}

.visitor-stat-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #2d8a4e, #1a5c2e);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(26, 92, 46, 0.22);
  border-bottom: 3px solid #f5c518;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.visitor-stat-chip.is-flash {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(26, 92, 46, 0.32);
}

.visitor-stat-chip-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.visitor-stat-chip-value {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  min-width: 1ch;
}

.visitor-stat-chip-value.is-bump {
  animation: visitorChipBump 0.45s ease;
}

.visitor-stat-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #86efac;
  box-shadow: 0 0 0 0 rgba(134, 239, 172, 0.7);
  animation: visitorChipPulse 1.6s ease-out infinite;
  flex-shrink: 0;
}

@keyframes visitorChipPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(134, 239, 172, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(134, 239, 172, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(134, 239, 172, 0);
  }
}

@keyframes visitorChipBump {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.22);
    color: #fef08a;
  }
  100% {
    transform: scale(1);
  }
}

.visitor-stat-chip--total .visitor-stat-chip-label {
  font-size: 0.62rem;
  line-height: 1.15;
  max-width: 4.8rem;
  white-space: normal;
  text-align: center;
}

@media (max-width: 480px) {
  .logo {
    width: 100px;
    height: 100px;
  }

  .logo-section h1 {
    font-size: 1.05rem;
  }

  .subtitle-tagline,
  .subtitle-institution {
    font-size: 0.66rem;
  }

  .home-panel {
    padding: 20px 20px 8px;
  }

  .visitor-stats-row {
    margin-top: 32px;
    gap: 8px;
  }

  .visitor-stat-chip {
    min-height: 38px;
    padding: 7px 8px;
    gap: 5px;
  }

  .visitor-stat-chip-label {
    font-size: 0.66rem;
  }

  .visitor-stat-chip-value {
    font-size: 0.86rem;
  }

  .cek-setoran-biodata-grid {
    grid-template-columns: 1fr;
  }

  .cek-setoran-santri-hero {
    flex-direction: column;
    text-align: center;
  }

  .cek-setoran-santri-meta {
    text-align: center;
  }

  .cek-setoran-popup-brand.logo-section {
    padding: 20px 40px 16px;
  }

  .cek-setoran-popup-brand.logo-section .logo {
    width: 84px;
    height: 84px;
  }

  .cek-setoran-popup-brand.logo-section h1 {
    font-size: 1rem;
  }

  .cek-setoran-popup-content {
    padding: 16px 12px 12px;
  }
}

/* Login banner overlay */
body.login-banner-open {
  overflow: hidden;
}

.login-banner-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(8, 24, 14, 0.72);
  backdrop-filter: blur(4px);
}

.login-banner-overlay[hidden] {
  display: none !important;
}

.login-banner-frame {
  position: relative;
  width: min(360px, calc(100vw - 36px));
  aspect-ratio: 9 / 16;
  max-height: min(84vh, 720px);
  border-radius: 22px;
  overflow: hidden;
  background: #0f2918;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(245, 197, 24, 0.55);
}

.login-banner-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #123222;
}

.login-banner-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 28, 18, 0.72);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-banner-close:hover,
.login-banner-close:focus-visible {
  background: rgba(220, 50, 50, 0.9);
  outline: none;
}

.login-banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: auto;
}

.login-banner-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}

.login-banner-dot.is-active {
  width: 18px;
  background: #f5c518;
}
