* {
  box-sizing: border-box;
  font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
}

body {
  margin: 0;
  color: #1e293b;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 45%, #eff6ff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
}

.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 64px 24px;
}

.hero {
  text-align: center;
  margin-bottom: 80px;
}

.logo-row,
.pay-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 64px;
}

.logo-icon {
  position: relative;
  font-size: 44px;
  color: #2563eb;
}

.logo-icon span {
  position: absolute;
  top: -10px;
  right: -14px;
  font-size: 18px;
}

.logo-icon.small {
  font-size: 34px;
}

.brand {
  font-size: 50px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-left: 20px;
  color: #1e293b;
  transition: .2s;
}

.brand:hover {
  color: #2563eb;
}

.brand span {
  color: #2563eb;
}

.brand.small {
  font-size: 30px;
}

.hero h1 {
  font-size: clamp(44px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #0f172a;
  max-width: 1000px;
  margin: 0 auto 48px;
}

.subtitle {
  font-size: 20px;
  color: #475569;
  font-weight: 300;
  margin-bottom: 48px;
}

.hero-image {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.hero-image img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 24px;
  box-shadow: 0 15px 30px rgba(15, 23, 42, .12);
  border: 1px solid rgba(226, 232, 240, .7);
}

.badge {
  font-size: 18px;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 48px;
}

.description {
  font-size: 20px;
  line-height: 1.7;
  font-weight: 300;
  color: #475569;
  max-width: 900px;
  margin: 0 auto;
}

.main-card-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 80px;
}

.card,
.payment-card,
.not-found-card {
  width: 100%;
  max-width: 768px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-radius: 28px;
  box-shadow: 0 25px 50px rgba(15,23,42,.16);
  border: 1px solid rgba(226,232,240,.7);
  overflow: hidden;
}

.form-card {
  padding: 48px;
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}

.card-title h2 {
  margin: 0;
  font-size: 30px;
}

form {
  display: grid;
  gap: 28px;
}

label {
  display: block;
  font-size: 17px;
  font-weight: 500;
  color: #334155;
  margin-bottom: 12px;
}

label span {
  color: #94a3b8;
  font-weight: 300;
}

input,
textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: rgba(255,255,255,.75);
  padding: 16px 22px;
  color: #1e293b;
  font-size: 17px;
  outline: none;
  transition: .2s;
}

input:focus,
textarea:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(59,130,246,.35);
}

textarea {
  resize: none;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.money-input {
  position: relative;
}

.money-input b {
  position: absolute;
  left: 20px;
  top: 16px;
  color: #64748b;
}

.money-input input {
  padding-left: 44px;
}

.primary-btn {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 20px 28px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  box-shadow: 0 14px 24px rgba(37,99,235,.25);
  cursor: pointer;
  transition: .2s;
}

.primary-btn:hover {
  transform: scale(1.02);
  background: linear-gradient(90deg, #1d4ed8, #1e40af);
}

.primary-btn:disabled {
  background: linear-gradient(90deg, #94a3b8, #64748b);
  cursor: not-allowed;
  transform: none;
}

.valid-box,
.error-box {
  border-radius: 14px;
  padding: 18px;
}

.valid-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.valid-box p {
  margin-top: 0;
  font-weight: 600;
}

.valid-box span {
  display: inline-flex;
  margin: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-weight: 600;
}

.error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-weight: 600;
}

.mini-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 28px;
  margin-top: 36px;
  text-align: center;
  color: #64748b;
}

.mini-footer a,
.footer a {
  color: #2563eb;
  font-weight: 700;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 80px;
}

.feature {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(226,232,240,.7);
  border-radius: 28px;
  text-align: center;
  padding: 40px;
  transition: .25s;
}

.feature:hover {
  transform: scale(1.02);
  box-shadow: 0 18px 35px rgba(15,23,42,.12);
}

.feature div {
  font-size: 48px;
  margin-bottom: 28px;
}

.feature h3 {
  font-size: 24px;
  margin: 0 0 16px;
}

.feature p {
  font-size: 18px;
  line-height: 1.6;
  color: #475569;
  font-weight: 300;
}

.feature.wide {
  grid-column: 2 / 3;
}

.footer {
  text-align: center;
  border-top: 1px solid #e2e8f0;
  padding-top: 64px;
  color: #64748b;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(226,232,240,.7);
  border-radius: 14px;
  padding: 14px 24px;
}

.pay-container {
  max-width: 768px;
  margin: 0 auto;
  padding: 64px 24px;
}

.payment-head {
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  color: white;
  text-align: center;
  padding: 40px;
}

.payment-head h1 {
  margin: 0 0 12px;
  font-size: 30px;
}

.payment-head p {
  margin: 0;
  font-size: 20px;
  color: #dbeafe;
  font-weight: 300;
}

.payment-body {
  padding: 40px;
}

.payment-body h3 {
  text-align: center;
  font-size: 24px;
  margin: 0 0 28px;
}

.method-list {
  display: grid;
  gap: 12px;
}

.method-btn {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  background: white;
  transition: .2s;
  overflow: hidden;
}

.method-btn:hover {
  transform: scale(1.01);
  background: #f8fafc;
  box-shadow: 0 8px 18px rgba(15,23,42,.08);
}

.accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.method-logo {
  width: 40px;
  height: 40px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-right: 14px;
  font-size: 20px;
}

.method-btn strong {
  font-size: 18px;
  flex: 1;
}

.external {
  color: #94a3b8;
  font-size: 20px;
}

.payment-footer {
  background: rgba(248,250,252,.6);
  padding: 28px;
  margin-top: 0;
}

.not-found-card {
  padding: 48px;
  text-align: center;
}

.alert {
  font-size: 72px;
}

.not-found-card h2 {
  font-size: 30px;
}

.not-found-card p {
  font-size: 20px;
  color: #475569;
  line-height: 1.6;
}

.back-btn {
  display: inline-flex;
  margin-top: 24px;
  color: #2563eb;
  background: #eff6ff;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 600;
}

.result-actions-top {
  text-align: center;
  margin-bottom: 32px;
}

.result-actions-top button {
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(226,232,240,.8);
  color: #475569;
  border-radius: 14px;
  padding: 14px 24px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

.share-link-box {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.share-link-box button,
.action-grid button,
.qr-box a {
  border: 0;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.qr-box {
  text-align: center;
  margin: 24px 0 32px;
}

.qr-box img {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.qr-box a {
  display: inline-block;
  margin-top: 14px;
}

.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .container,
  .pay-container {
    padding: 32px 16px;
  }

  .logo-row {
    margin-bottom: 40px;
  }

  .brand {
    font-size: 32px;
  }

  .hero h1 {
    font-size: 42px;
    margin-bottom: 32px;
  }

  .form-card,
  .payment-body,
  .payment-head {
    padding: 28px;
  }

  .grid-2,
  .features,
  .action-grid {
    grid-template-columns: 1fr;
  }

  .feature.wide {
    grid-column: auto;
  }

  .share-link-box {
    flex-direction: column;
  }
}