*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif;
  background: #f7f8fb;
  color: #0f172a;
  line-height: 1.6;
}

a {
  color: inherit;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container,
.home-container,
.page-shell,
.pay-safe-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.page-shell {
  padding-top: 32px;
  padding-bottom: 48px;
}

.page-shell--narrow {
  max-width: 1120px;
}

.page-card,
.panel,
.card,
.home-card,
.pay-safe-card,
.order-card-ui,
.success-card-commercial,
.query-card-unified {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  background: #ffffff;
  border: 1px solid #e8edf3;
  border-radius: 24px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.05);
}

.page-card,
.panel,
.pay-safe-card,
.order-card-ui,
.success-card-commercial,
.query-card-unified {
  padding: 26px;
}

.eyebrow {
  color: #3566d6;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  margin-bottom: 10px;
}

.page-title {
  margin: 0 0 12px;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.page-title-xl {
  margin: 0 0 14px;
  font-size: 52px;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.muted,
.lead {
  color: #64748b;
  line-height: 1.8;
}

.lead {
  font-size: 17px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

.btn-secondary {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #dbe2ea;
}

.btn-block {
  width: 100%;
}

.notice-box {
  margin-top: 14px;
  background: #fbfdff;
  border: 1px solid #e8edf3;
  border-radius: 16px;
  padding: 16px;
  color: #334155;
  line-height: 1.75;
}

.notice-box--danger {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.18);
  color: #b42318;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* Header */
.home-header {
  background: #ffffff;
  border-bottom: 1px solid #eceff3;
}

.home-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-brand {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  text-decoration: none;
  line-height: 1.1;
  min-width: 0;
  flex: 1 1 auto;
}

.home-track {
  flex: 0 0 auto;
  color: #0f172a;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

/* Homepage */
.home-wrap {
  width: 100%;
  overflow-x: hidden;
}

.home-main {
  padding-bottom: 40px;
}

.home-hero {
  padding: 34px 0 18px;
}

.home-hero-inner {
  text-align: center;
}

.home-title {
  margin: 0 auto 14px;
  max-width: 820px;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-align: center;
  color: #0f172a;
}

.home-desc {
  margin: 0 auto;
  max-width: 860px;
  font-size: 20px;
  line-height: 1.75;
  color: #6b7280;
  text-align: center;
}

.home-products {
  padding: 10px 0 40px;
}

.home-section-title {
  margin: 0 0 18px;
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-card {
  overflow: hidden;
}

.home-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #fff;
}

.home-card-body {
  padding: 20px;
}

.home-card-title {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.28;
  color: #0f172a;
}

.home-card-desc {
  margin: 0 0 16px;
  color: #6b7280;
  line-height: 1.7;
  min-height: 48px;
}

.home-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-price {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #d9d8ff, #c8c4ff);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

/* Forms */
.stack-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #dbe2ea;
  border-radius: 14px;
  padding: 0 14px;
  font-size: 15px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
}

textarea.input,
textarea {
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

.input:focus,
textarea:focus,
select:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Summary / common cards */
.summary-grid,
.pay-safe-summary,
.checkout-summary-commercial,
.checkout-summary-commercial--safe,
.order-grid-ui,
.order-summary-grid,
.order-summary-grid--polished {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.summary-box,
.pay-safe-box,
.order-box-ui,
.summary-item {
  background: #fafafa;
  border: 1px solid #eceff3;
  border-radius: 18px;
  padding: 18px;
}

.summary-box span,
.pay-safe-box span,
.order-box-ui span,
.summary-item span {
  display: block;
  color: #7c8798;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 8px;
}

.summary-box strong,
.pay-safe-box strong,
.order-box-ui strong,
.summary-item strong {
  display: block;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Payment selection */
.pay-safe-wrap {
  max-width: 980px;
  margin-top: 32px;
  margin-bottom: 56px;
}

.pay-safe-card {
  padding: 28px;
}

.pay-safe-eyebrow {
  color: #3566d6;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  margin-bottom: 10px;
}

.pay-safe-title {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 46px;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.pay-safe-desc {
  margin: 0;
  color: #64748b;
  font-size: 17px;
  line-height: 1.8;
}

.pay-safe-methods {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.pay-safe-method {
  display: block;
  cursor: pointer;
}

.pay-safe-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pay-safe-method__body {
  background: #fff;
  border: 1px solid #dbe2ea;
  border-radius: 18px;
  padding: 18px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.pay-safe-method input:checked + .pay-safe-method__body {
  border-color: #93c5fd;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.pay-safe-method__title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.pay-safe-method__desc {
  color: #64748b;
  line-height: 1.75;
  margin-bottom: 12px;
}

.pay-safe-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.pay-safe-tag--trc {
  background: #ecfeff;
  color: #0f766e;
}

.pay-safe-tag--polygon {
  background: #eff6ff;
  color: #1d4ed8;
}

.pay-safe-tag--bep {
  background: #fff7ed;
  color: #c2410c;
}

.pay-safe-actions {
  margin-top: 18px;
}

.pay-safe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

/* Order detail */
.order-page-shell {
  padding-top: 28px;
  padding-bottom: 44px;
}

.order-card-ui {
  max-width: 1120px;
  margin: 0 auto;
  border-radius: 24px;
  padding: 28px 28px 22px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.order-card-ui__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.order-card-ui__title,
.order-page-title {
  margin: 8px 0 8px;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.order-card-ui__sub {
  margin: 0;
  color: #64748b;
  line-height: 1.75;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.status-badge--success {
  background: rgba(16, 185, 129, 0.12);
  color: #0f9f6e;
}

.status-badge--warning {
  background: rgba(245, 158, 11, 0.14);
  color: #b96a00;
}

.status-badge--danger {
  background: rgba(239, 68, 68, 0.12);
  color: #d23a3a;
}

.status-badge--neutral {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.delivery-panel-ui,
.delivery-section {
  margin-top: 22px;
}

.delivery-panel-ui h2,
.delivery-section h2 {
  margin: 0 0 14px;
  font-size: 22px;
  color: #0f172a;
}

.delivery-panel-ui__box,
.delivery-box {
  background: #fbfcfe;
  border: 1px solid #e8edf3;
  border-radius: 18px;
  padding: 18px 20px;
  white-space: pre-wrap;
  line-height: 1.75;
  color: #1f2937;
  overflow-wrap: anywhere;
}

.delivery-panel-ui__notice {
  background: #fbfcfe;
  border: 1px solid #e8edf3;
  border-radius: 18px;
  padding: 18px 20px;
  color: #374151;
  line-height: 1.75;
}

/* Query / success */
.success-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  font-size: 30px;
  font-weight: 900;
}

.divider {
  height: 1px;
  background: #e8edf3;
  margin: 22px 0;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid #e8edf3;
  background: #fff;
}

.site-footer__inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #64748b;
  font-size: 14px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Mobile */
@media (max-width: 980px) {
  .home-title,
  .page-title-xl {
    font-size: 42px;
  }

  .home-desc {
    font-size: 18px;
  }

  .home-grid {
    grid-template-columns: 1fr;
  }

  .order-card-ui__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-card-ui__title,
  .order-page-title {
    font-size: 34px;
  }
}

@media (max-width: 640px) {
  .container,
  .home-container,
  .page-shell,
  .pay-safe-wrap,
  .site-footer__inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .page-shell {
    padding-top: 20px;
    padding-bottom: 36px;
  }

  .home-header-inner {
    min-height: 64px;
  }

  .home-brand {
    font-size: 18px;
  }

  .home-track {
    font-size: 14px;
  }

  .home-hero {
    padding: 22px 0 12px;
  }

  .home-title,
  .page-title-xl {
    font-size: 28px;
    line-height: 1.14;
    max-width: 100%;
  }

  .page-title,
  .pay-safe-title,
  .order-card-ui__title,
  .order-page-title {
    font-size: 30px;
    line-height: 1.12;
  }

  .home-desc,
  .pay-safe-desc {
    font-size: 15px;
    line-height: 1.8;
    max-width: 100%;
  }

  .home-section-title {
    font-size: 24px;
    margin-bottom: 14px;
  }

  .home-card-body,
  .page-card,
  .panel,
  .pay-safe-card,
  .order-card-ui,
  .success-card-commercial,
  .query-card-unified {
    padding: 16px;
  }

  .home-card-title {
    font-size: 18px;
  }

  .home-card-desc {
    min-height: 0;
    font-size: 14px;
  }

  .home-price {
    font-size: 28px;
  }

  .home-btn,
  .btn,
  .pay-safe-btn {
    min-height: 42px;
    padding: 0 14px;
    font-size: 14px;
    width: 100%;
  }

  .home-card-footer,
  .action-row,
  .success-head {
    flex-direction: column;
    align-items: stretch;
  }

  .summary-grid,
  .pay-safe-summary,
  .checkout-summary-commercial,
  .checkout-summary-commercial--safe,
  .order-grid-ui,
  .order-summary-grid,
  .order-summary-grid--polished {
    grid-template-columns: 1fr !important;
  }

  .pay-safe-method__title {
    font-size: 19px;
  }

  .site-footer__inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding-top: 14px;
    padding-bottom: 14px;
  }
}