@font-face {
  font-family: Vazirmatn;
  src: url('/fonts/Vazirmatn-Thin.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('/fonts/Vazirmatn-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('/fonts/Vazirmatn-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('/fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('/fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url('/fonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Vazirmatn, sans-serif;
}

:root {
  --page-bg: #fafafa;
  --card-bg: #ffffff;
  --text-main: #333333;
  --text-muted: #666666;
  --surface-soft: #f8f9fa;
  --surface-soft-hover: #f0f0f0;
  --success-color: #4CAF50;
  --error-color: #FF5252;
  --accent-color: #ffffff;
  --border-color: #e9e9e9;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--page-bg);
  padding: 20px;
  position: relative;
}

.loading {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 24px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  color: rgba(30, 30, 35, 0.92);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.55);
  opacity: 0;
  transform: translateY(8px);
  animation: fadeIn 0.4s ease forwards;
  pointer-events: auto;
}

.loading[hidden] {
  display: none;
}

.result-container {
  background: var(--card-bg);
  border-radius: 30px;
  padding: 50px;
  width: 100%;
  max-width: 500px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease forwards;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
}

.result-container:hover {
  transform: translateY(-5px);
}

.company-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.company-logo {
  width: 72px;
  height: 72px;
  /* border-radius: 5px; */
  /* object-fit: cover; */
  /* border: 1px solid var(--border-color); */
  /* background: var(--accent-color); */
}

.company-name {
  font-size: 20px;
  color: var(--text-main);
  font-weight: 600;
}

.status-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 10px;
  position: relative;
  animation: iconAppear 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
  transition: transform 0.3s ease;
}

.status-icon svg {
  width: 100%;
  height: 100%;
  display: none;
}

.status-icon svg[hidden] {
  display: none !important;
}

.status-icon svg.active {
  display: block !important;
}

.success-icon {
  fill: var(--success-color);
  animation: successPulse 2s infinite;
}

.error-icon {
  fill: var(--error-color);
  animation: errorShake 0.5s ease-in-out;
}

@keyframes successPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes iconAppear {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.message {
  font-size: 28px;
  margin-bottom: 5px;
  color: var(--text-main);
  font-weight: 500;
}

.message-sub {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 10px;
  line-height: 1.8;
}

.amount {
  font-size: 38px;
  font-weight: 600;
  color: var(--text-main);
  margin: 10px 0;
  animation: slideUp 0.6s ease-out 0.3s forwards;
  opacity: 0;
  transform: translateY(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: transform 0.3s ease;
}

.amount:hover {
  transform: scale(1.02);
}

.amount svg {
  width: 32px;
  height: 32px;
  fill: #4CAF50;
}

.psp-info {
  background: var(--surface-soft);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  margin: 0 auto 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  max-width: fit-content;
}

.psp-image {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
}

.verification-number {
  background: var(--surface-soft);
  padding: 20px 30px;
  border-radius: 16px;
  font-size: 18px;
  margin: 10px 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  animation: slideUp 0.6s ease-out 0.4s forwards;
  opacity: 0;
  transform: translateY(20px);
  color: var(--text-main);
  justify-content: center;
  transition: all 0.3s ease;
}

.verification-number:hover {
  background: var(--surface-soft-hover);
  transform: translateY(-2px);
}

.verification-number svg {
  width: 24px;
  height: 24px;
  fill: var(--text-muted);
}

.date {
  color: var(--text-muted);
  margin: 10px 0;
  font-size: 16px;
  animation: slideUp 0.6s ease-out 0.5s forwards;
  opacity: 0;
  transform: translateY(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: transform 0.3s ease;
}

.date:hover {
  transform: translateY(-2px);
}

.date svg {
  width: 24px;
  height: 24px;
  fill: var(--text-muted);
}

.back-button {
  background: var(--surface-soft);
  color: var(--text-main);
  border: none;
  padding: 18px 36px;
  border-radius: 16px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  animation: slideUp 0.6s ease-out 0.6s forwards;
  opacity: 0;
  transform: translateY(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.back-button:hover {
  background: var(--surface-soft-hover);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-button:active {
  transform: translateY(-1px);
}

.back-button svg {
  width: 24px;
  height: 24px;
  fill: var(--text-main);
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .result-container {
    padding: 30px;
    border-radius: 24px;
  }

  .message {
    font-size: 24px;
  }

  .message-sub {
    font-size: 14px;
  }

  .amount {
    font-size: 32px;
  }

  .verification-number {
    font-size: 16px;
    padding: 15px 25px;
  }

  .back-button {
    padding: 16px 32px;
    font-size: 16px;
  }
}
