@font-face {
  font-family: "IRYekan";
  src: url("./fonts/IRANYekanXFaNum-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRYekan";
  src: url("./fonts/IRANYekanXFaNum-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0A143F;
  --text: #ffffff;
  --muted: rgba(142, 219, 255, 0.78);
  --accent: #3FD0FF;
  --accent-strong: #0B4DB8;
  --cta-text: #FFFFFF;
  --card: rgba(11, 77, 184, 0.18);
  --card-border: rgba(142, 219, 255, 0.2);
  --shadow: 0 16px 30px rgba(10, 31, 143, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: linear-gradient(135deg,
      #050914 0%,
      #0A143F 55%,
      #0A2D70 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IRYekan", "Tahoma", sans-serif;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.layout {
  width: min(520px, 100%);
}

.is-hidden {
  display: none !important;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-pill {
  background: rgba(63, 208, 255, 0.14);
  border: 1px solid rgba(63, 208, 255, 0.28);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  min-width: 84px;
  text-align: center;
  box-shadow: 0 8px 16px rgba(10, 31, 143, 0.24);
}

.title {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.menu-btn {
  border: 1px solid rgba(63, 208, 255, 0.3);
  background: rgba(63, 208, 255, 0.12);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(10, 31, 143, 0.22);
}

.progress-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.action-btn {
  background: rgba(11, 77, 184, 0.2);
  border: 1px solid rgba(142, 219, 255, 0.22);
  border-radius: 14px;
  padding: 12px 8px;
  display: grid;
  gap: 8px;
  justify-items: center;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.action-btn:active {
  transform: translateY(1px);
}

.field {
  display: grid;
  gap: 6px;
}

.input-box {
  width: 100%;
  border: 1px solid rgba(142, 219, 255, 0.35);
  background: #fff;
  color: #000;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-box:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(63, 208, 255, 0.24);
}

.submit-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg,
      rgba(63, 208, 255, 0.95) 0%,
      rgba(63, 208, 255, 0.85) 70%,
      rgba(11, 77, 184, 0.8) 120%);
  color: var(--cta-text);
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(11, 77, 184, 0.3);
}

.submit-btn:active {
  transform: translateY(1px);
  box-shadow: 0 10px 20px rgba(11, 77, 184, 0.28);
}

.submit-btn[disabled],
.submit-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.upload-btn {
  justify-self: start;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(63, 208, 255, 0.35);
  background: rgba(63, 208, 255, 0.12);
  color: var(--text);
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(10, 31, 143, 0.26);
}

.upload-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.deposit-panel {
  background: rgba(11, 77, 184, 0.2);
  border: 1px solid rgba(142, 219, 255, 0.3);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow);
}

.deposit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.deposit-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.deposit-timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background-color: rgba(63, 208, 255, 0.12);
  background-image: linear-gradient(120deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.18) 42%,
      rgba(255, 255, 255, 0.08) 58%,
      rgba(255, 255, 255, 0) 75%);
  background-size: 240% 100%;
  background-position: 120% 0;
  background-repeat: no-repeat;
  border: 1px solid rgba(63, 208, 255, 0.28);
  font-size: 0.82rem;
  animation: sweep-light 2s linear infinite;
  will-change: background-position;
}

.deposit-timer strong {
  font-size: 0.95rem;
}

.deposit-status {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(142, 219, 255, 0.25);
  background: rgba(11, 77, 184, 0.16);
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.deposit-status.is-error {
  color: #ffb3b3;
  border-color: rgba(255, 155, 155, 0.45);
}

.deposit-status.is-success {
  color: #9ce9c8;
  border-color: rgba(156, 233, 200, 0.4);
}

.deposit-request {
  display: grid;
  gap: 10px;
}

.deposit-body {
  display: grid;
  gap: 12px;
}

.deposit-meta {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(142, 219, 255, 0.22);
  background: rgba(6, 12, 32, 0.5);
  font-size: 0.88rem;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.meta-label {
  color: var(--muted);
}

.meta-value {
  font-weight: 700;
}

.deposit-bank-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(7, 16, 40, 0.92), rgba(12, 32, 80, 0.9));
  border: 1px solid rgba(142, 219, 255, 0.26);
  border-radius: 16px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  box-shadow: 0 18px 32px rgba(4, 10, 28, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.deposit-bank-card strong {
  font-weight: 700;
}

.deposit-bank-card::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -20%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 65%);
  opacity: 0.5;
  pointer-events: none;
}

.deposit-bank-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 55%);
  pointer-events: none;
}

.deposit-bank-card > * {
  position: relative;
  z-index: 1;
}

.deposit-upload {
  display: grid;
  gap: 10px;
}

.upload-label {
  font-size: 0.88rem;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.upload-placeholder {
  border: 1px dashed rgba(142, 219, 255, 0.4);
  border-radius: 12px;
  min-height: 76px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 6px;
}

.receipt-thumb {
  position: relative;
  border: 1px solid rgba(142, 219, 255, 0.3);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: rgba(6, 12, 32, 0.4);
}

.receipt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.remove-receipt {
  position: absolute;
  top: 6px;
  inset-inline-end: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.summary-label {
  color: var(--muted);
}

.summary-main {
  font-size: 1.05rem;
  font-weight: 700;
}

.summary-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

.status-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-awaiting {
  color: #bde7ff;
  background: rgba(63, 208, 255, 0.18);
  border-color: rgba(63, 208, 255, 0.35);
}

.status-submitted {
  color: #ffd28a;
  background: rgba(255, 170, 64, 0.18);
  border-color: rgba(255, 170, 64, 0.35);
}

.status-confirmed {
  color: #9ce9c8;
  background: rgba(80, 200, 150, 0.18);
  border-color: rgba(80, 200, 150, 0.35);
}

.status-rejected {
  color: #ffb3b3;
  background: rgba(255, 120, 120, 0.18);
  border-color: rgba(255, 120, 120, 0.35);
}

.status-expired {
  color: #c4c9d4;
  background: rgba(120, 130, 150, 0.18);
  border-color: rgba(120, 130, 150, 0.35);
}

.deposit-row.is-awaiting-receipt {
  background-color: rgba(6, 12, 32, 0.6);
  background-image: linear-gradient(120deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.12) 42%,
      rgba(255, 255, 255, 0.05) 58%,
      rgba(255, 255, 255, 0) 75%);
  background-size: 260% 100%;
  background-position: 120% 0;
  background-repeat: no-repeat;
  animation: sweep-light 2s linear infinite;
  will-change: background-position;
}

.details-panel {
  width: min(520px, 100%);
  background: rgba(11, 77, 184, 0.22);
  border: 1px solid rgba(142, 219, 255, 0.3);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow);
}

.bottom-nav {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  background: rgba(6, 12, 32, 0.9);
  border: 1px solid rgba(142, 219, 255, 0.2);
  border-radius: 18px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  box-shadow: 0 16px 30px rgba(10, 31, 143, 0.35);
  backdrop-filter: blur(14px);
}

.nav-item {
  display: grid;
  gap: 4px;
  justify-items: center;
  font-size: 0.72rem;
  color: rgba(142, 219, 255, 0.7);
  text-decoration: none;
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(142, 219, 255, 0.4);
}

.nav-item.is-active {
  color: var(--accent);
  font-weight: 700;
}

.nav-item.is-active .nav-dot {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(63, 208, 255, 0.6);
}

.gate {
  width: min(520px, 100%);
  background: rgba(11, 77, 184, 0.18);
  border: 1px solid rgba(142, 219, 255, 0.28);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.gate-link {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--cta-text);
  text-decoration: none;
  font-weight: 700;
}

.consent-group {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(142, 219, 255, 0.18);
  background: rgba(6, 12, 32, 0.45);
}

.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  line-height: 1 rem;
  color: var(--muted);
}

.consent-item input {
  margin-top: 2px;
}

.consent-warning {
  font-size: 0.78rem;
  color: #ffb3b3;
}

@keyframes sweep-light {
  from {
    background-position: 120% 0;
  }

  to {
    background-position: -120% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .deposit-timer,
  .deposit-row.is-awaiting-receipt {
    animation: none;
  }
}

@media (max-width: 420px) {
  .upload-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
