@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap');

#van-grant-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: vgcOverlayIn 0.3s ease forwards;
}

@keyframes vgcOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#van-grant-card {
  width: min(360px, 92vw);
  background: #18181b;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 179, 71, 0.06);
  font-family: 'Poppins', -apple-system, 'Helvetica Neue', sans-serif;
  animation: vgcCardIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

.vgc-header {
  background: #111113;
  padding: 24px 24px 20px;
  border-bottom: 1px solid #2a2a2e;
  position: relative;
}

.vgc-header-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffb347, #ffd49a, #ffb347, transparent);
}

.vgc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 179, 71, 0.1);
  border: 1px solid rgba(255, 179, 71, 0.22);
  border-radius: 9999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

.vgc-badge-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffb347;
}

.vgc-badge span:last-child {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffb347;
}

.vgc-amount-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 179, 71, 0.45);
  margin-bottom: 4px;
}

.vgc-amount-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.vgc-amount-num {
  font-size: 50px;
  font-weight: 800;
  color: #ffb347;
  line-height: 1;
  letter-spacing: -1.5px;
  text-shadow: 0 0 32px rgba(255, 179, 71, 0.25);
}

.vgc-amount-unit {
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 179, 71, 0.5);
  letter-spacing: 0.08em;
}

.vgc-body {
  padding: 20px 24px 22px;
}

.vgc-note {
  font-size: 12px;
  font-weight: 400;
  color: #8e8e93;
  font-style: italic;
  margin-bottom: 18px;
  line-height: 1.55;
  min-height: 14px;
}

.vgc-from-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0a0a0c;
  border: 1px solid #2a2a2e;
  border-radius: 0.75rem;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.vgc-from-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vgc-from-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8e8e93;
}

.vgc-from-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.vgc-sig {
  font-family: 'Dancing Script', cursive;
  font-size: 36px;
  font-weight: 700;
  color: #ffb347;
  line-height: 1;
  text-shadow: 0 0 24px rgba(255, 179, 71, 0.3);
}

.vgc-ok-btn {
  display: block;
  width: 100%;
  padding: 14px 0;
  background: #0785FD;
  border: none;
  border-radius: 9999px;
  color: #ffffff;
  font-family: 'Poppins', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(7, 133, 253, 0.35);
  outline: none;
}

.vgc-ok-btn:hover {
  opacity: 0.9;
  box-shadow: 0 6px 20px rgba(7, 133, 253, 0.45);
}

.vgc-ok-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(7, 133, 253, 0.2);
}

#van-grant-overlay.vgc-hide {
  animation: vgcOverlayOut 0.26s ease forwards;
}

@keyframes vgcOverlayOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
