body {
  background: #070b14;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}

.glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 999px;
  filter: blur(120px);
  opacity: .15;
}

.glow-1 {
  top: -150px;
  left: -100px;
  background: #2563eb;
}

.glow-2 {
  bottom: -150px;
  right: -100px;
  background: #7c3aed;
}

.card {
  background: rgba(15, 23, 42, .7);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(20px);
  border-radius: 28px;
  padding: 32px;
  box-shadow:
    0 10px 40px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.04);
}

.card-head h2 {
  font-size: 28px;
  font-weight: 700;
}

.card-head p {
  color: #94a3b8;
  margin-top: 4px;
  font-size: 14px;
}

.input {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 16px;
  color: white;
  outline: none;
  transition: .25s;
}

.input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59,130,246,.15);
}

.textarea {
  min-height: 180px;
  resize: none;
  margin-top: 24px;
}

.upload-box {
  display: block;
  margin-top: 20px;
  cursor: pointer;
}

.upload-inner {
  border: 1.5px dashed rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  padding: 26px;
  border-radius: 20px;
  transition: .25s;
}

.upload-inner:hover {
  border-color: #3b82f6;
  background: rgba(59,130,246,.06);
}

.upload-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg,#2563eb,#7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.upload-inner h3 {
  font-size: 17px;
  font-weight: 600;
}

.upload-inner p {
  color: #94a3b8;
  margin-top: 4px;
  font-size: 14px;
}

.input-label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  color: #94a3b8;
}

.primary-btn,
.secondary-btn {
  width: 100%;
  height: 58px;
  border-radius: 18px;
  font-weight: 700;
  transition: .25s;
}

.primary-btn {
  background: linear-gradient(135deg,#2563eb,#7c3aed);
}

.secondary-btn {
  background: linear-gradient(135deg,#059669,#14b8a6);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
  opacity: .95;
}

.result-box {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  padding: 20px;
  border-radius: 20px;
}

.result-title {
  font-weight: 700;
  font-size: 18px;
}

.received-text {
  line-height: 1.7;
  color: #dbeafe;
}

.mini-btn {
  background: rgba(255,255,255,.08);
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
}

.loader-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.loader {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255,255,255,.08);
  border-top-color: #3b82f6;
  border-radius: 999px;
  animation: spin .8s linear infinite;
}

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

.status-dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 999px;
  box-shadow: 0 0 20px #22c55e;
}

.qr-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.qr-card {
  width: 360px;
  background: #0f172a;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 28px;
  padding: 28px;
}

.qr-box {
  background: white;
  padding: 18px;
  border-radius: 20px;
  display: flex;
  justify-content: center;
}

.close-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
}

#toast {
  position: fixed;
  top: 30px;
  right: 30px;

  z-index: 999999;

  opacity: 0;
  transform:
    translateY(-20px)
    scale(.95);

  transition:
    opacity .35s ease,
    transform .35s ease;

  pointer-events: none;
}

.toast-inner {

  min-width: 320px;
  max-width: 420px;

  display: flex;
  align-items: center;
  gap: 14px;

  padding: 16px 18px;

  border-radius: 22px;

  backdrop-filter: blur(24px);

  border: 1px solid rgba(255,255,255,.08);

  background:
    linear-gradient(
      135deg,
      rgba(17,24,39,.92),
      rgba(15,23,42,.82)
    );

  box-shadow:
    0 10px 40px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.toast-success {
  border-color: rgba(16,185,129,.18);
}

.toast-error {
  border-color: rgba(239,68,68,.18);
}

.toast-icon-wrap {

  width: 42px;
  height: 42px;

  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
}

.toast-success .toast-icon-wrap {
  background:
    linear-gradient(
      135deg,
      rgba(16,185,129,.22),
      rgba(5,150,105,.16)
    );

  color: #34d399;
}

.toast-error .toast-icon-wrap {
  background:
    linear-gradient(
      135deg,
      rgba(239,68,68,.22),
      rgba(185,28,28,.16)
    );

  color: #f87171;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-size: 14px;
  font-weight: 700;
  color: white;
}

.toast-message {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 2px;
}

.toast-glow {

  position: absolute;
  inset: 0;

  border-radius: inherit;

  background:
    radial-gradient(
      circle at top left,
      rgba(255,255,255,.08),
      transparent 60%
    );

  pointer-events: none;
}

@keyframes toastPop {

  0% {
    transform:
      translateY(-20px)
      scale(.92);

    opacity: 0;
  }

  100% {
    transform:
      translateY(0)
      scale(1);

    opacity: 1;
  }
}

.toast-show {
  animation: toastPop .35s ease forwards;
}