/* =========================================================
   TRANG THANH TOÁN THÀNH CÔNG
   ========================================================= */

body.esim-checkout-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at top left,
      rgba(34, 197, 94, 0.1),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      #f8fafc 0%,
      #eef7f1 100%
    );
  color: #0f172a;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body.esim-checkout-body *,
body.esim-checkout-body *::before,
body.esim-checkout-body *::after {
  box-sizing: border-box;
}

.esim-checkout-page {
  width: 100%;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 64px;
}

.esim-checkout-card {
  position: relative;
  width: 100%;
  max-width: 620px;
  overflow: hidden;
  padding: 100px 40px 40px;
  border: 1px solid #dcfce7;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    0 24px 70px rgba(15, 23, 42, 0.1),
    0 8px 24px rgba(22, 101, 52, 0.08);
  text-align: center;
}

/* Biểu tượng dấu tích */
.esim-checkout-card::before {
  content: "✓";
  position: absolute;
  top: 28px;
  left: 50%;
  width: 56px;
  height: 56px;
  border: 7px solid #dcfce7;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  line-height: 56px;
  transform: translateX(-50%);
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.25);
}

.esim-checkout-card h1 {
  margin: 0 0 18px;
  color: #166534;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.esim-checkout-card p {
  margin: 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.65;
}

/* Mã đơn hàng */
.esim-checkout-card p:first-of-type {
  margin-top: 30px;
  padding: 18px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  color: #64748b;
}

.esim-checkout-card p:first-of-type strong {
  display: block;
  margin-top: 6px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
}

/* Dòng mô tả email */
.esim-checkout-card p:nth-of-type(2) {
  margin-top: 28px;
  color: #64748b;
}

/* Email nhận eSIM */
.esim-checkout-card p:nth-of-type(3) {
  margin-top: 10px;
}

.esim-checkout-card p:nth-of-type(3) strong {
  display: inline-block;
  max-width: 100%;
  padding: 10px 16px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 15px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

/* Trạng thái cấp eSIM */
.esim-checkout-card p:last-of-type {
  margin-top: 30px;
  padding: 17px 18px;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  background: #f0fdf4;
  color: #166534;
  font-weight: 700;
}

.esim-checkout-card p:last-of-type::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12);
  vertical-align: 1px;
}

/* Responsive */
@media (max-width: 575.98px) {
  .esim-checkout-page {
    align-items: flex-start;
    padding: 24px 12px 40px;
  }

  .esim-checkout-card {
    padding: 90px 20px 28px;
    border-radius: 18px;
  }

  .esim-checkout-card::before {
    top: 24px;
    width: 50px;
    height: 50px;
    border-width: 6px;
    font-size: 28px;
    line-height: 50px;
  }

  .esim-checkout-card h1 {
    font-size: 28px;
  }

  .esim-checkout-card p {
    font-size: 14px;
  }

  .esim-checkout-card p:first-of-type {
    margin-top: 24px;
    padding: 15px;
  }

  .esim-checkout-card p:first-of-type strong {
    font-size: 16px;
  }
}