/* ================= RESET ================= */
/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
}

/* ================= BODY ================= */
html, body {
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ================= PHONE FRAME ================= */
.phone {
  width: 390px;
  height: 820px;
  background: #f2f2f7;
  border-radius: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0,0,0,0.55);
}

/* ================= SAFARI BACKGROUND ================= */
.safari-bg {
  position: absolute;
  inset: 0;
  background: url("assets/bg.jpg") center / cover no-repeat;
  z-index: 1;
}

.safari-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
}

/* ================= PAGE CONTENT ================= */
.page-content {
  position: relative;
  z-index: 2;
  height: 100%;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ================= BOTTOM SHEET ================= */
.sheet {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 52%;
  background: #ffffff;
  border-radius: 28px 28px 0 0;
  padding: 22px 20px 28px;
  text-align: center;
}

/* ================= HANDLE ================= */
.handle {
  width: 38px;
  height: 5px;
  background: #d1d1d6;
  border-radius: 10px;
  margin: 0 auto 14px;
}

/* ================= TEXT ================= */
.pay-title {
  font-size: 17px;
  font-weight: 600;
  color: #1c1c1e;
  margin-bottom: 6px;
}

.pay-amount {
  font-size: 34px;
  font-weight: 700;
  color: #000;
  margin-bottom: 14px;
}

/* ================= APPLE PAY ================= */
.apple-pay-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 22px;
  color: #000;
}

/* ================= STATUS ================= */
.status-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: white;
}

.status-icon.green {
  background: #34c759;
}

.status-title {
  font-size: 18px;
  font-weight: 600;
  color: #1c1c1e;
  margin-bottom: 4px;
}

.status-sub {
  font-size: 14px;
  color: #8e8e93;
  margin-bottom: 22px;
}

/* ================= DONE BUTTON ================= */
.done-btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  border: none;
}


/* ================= iOS COLORS ================= */
:root{
  --ios-blue:#007aff;
  --ios-gray:#8e8e93;
  --ios-light:#f2f2f7;
  --ios-border:#e5e5ea;
  --ios-text:#1c1c1e;
}

/* ================= PHONE FRAME ================= */
.phone{
  max-width:430px;
  height:100vh;
  margin:auto;
  background:var(--ios-light);
  position:relative;
  overflow:hidden;
}

/* ================= SAFARI BACKGROUND (TOP 50%) ================= */
.safari-bg{
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:50%;
  background-image:url("assets/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index:1;
}



/* ================= BOTTOM SHEET ================= */
.sheet{
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  height:50%;
  background:rgba(255,255,255,0.96);
  border-radius:22px 22px 0 0;
  padding:26px 20px;
  text-align:center;
  box-shadow:0 -14px 30px rgba(0,0,0,.18);
  animation:slideUp .45s ease-out;
  backdrop-filter: blur(10px);
}

@keyframes slideUp{
  from{transform:translateY(100%)}
  to{transform:translateY(0)}
}

/* ================= TEXT ================= */
.title{
  font-size:17px;
  font-weight:600;
  color:var(--ios-text);
}

.sub{
  font-size:14px;
  color:var(--ios-gray);
  margin-top:6px;
}

.amount{
  font-size:34px;
  font-weight:700;
  color:#000;
  margin:12px 0;
}

/* ================= FACE VERIFICATION ================= */
.handle{
  width:36px;
  height:5px;
  background:#d1d1d6;
  border-radius:10px;
  margin:0 auto 12px;
}

.pay-title{
  text-align:center;
  font-size:17px;
  font-weight:600;
  margin-bottom:6px;
}

.pay-amount{
  text-align:center;
  font-size:34px;
  font-weight:700;
  margin-bottom:12px;
}

.brand-row{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:6px;
  margin-bottom:18px;
  font-size:17px;
}

.brand-logo{
  font-size:18px;
}

.info-row{
  display:flex;
  justify-content:space-between;
  padding:14px 0;
  border-top:1px solid #e5e5ea;
  font-size:15px;
}

.arrow{
  color:#8e8e93;
}



.faceid-icon{
  width:120px;
  height:120px;
  margin:22px auto 12px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.faceid-icon svg{
  width:110px;
  height:110px;
  stroke:var(--ios-blue);
  stroke-width:3;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
  animation:facePulse 1.6s ease-in-out infinite;
}

@keyframes facePulse{
  0%{opacity:.4}
  50%{opacity:1}
  100%{opacity:.4}
}

.faceid-text{
  font-size:18px;
  font-weight:500;
  color:var(--ios-gray);
  margin-top:6px;
}

/* ================= PROCESSING SPINNER ================= */
.spinner-wrap{
  margin-top:24px;
  text-align:center;
}

.spinner{
  width:32px;
  height:32px;
  border:3px solid #e5e5ea;
  border-top:3px solid #000;
  border-radius:50%;
  margin:0 auto 10px;
  animation:spin 1s linear infinite;
}

@keyframes spin{
  to{transform:rotate(360deg);}
}

.processing-text{
  font-size:16px;
  font-weight:600;
  color:#1c1c1e;
}

.sub-text{
  font-size:14px;
  color:#8e8e93;
  margin-top:4px;
}

/* ================= SUCCESS CONTENT ================= */

/* ===== SUCCESS PAGE ===== */

.success-sheet{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
}

/* Green check */
.success-icon{
  width:74px;
  height:74px;
  border-radius:50%;
  background:#34c759;
  color:#fff;
  font-size:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:10px;
}

/* Text */
.success-title{
  font-size:22px;
  font-weight:600;
  color:#000;
}

.success-sub{
  font-size:15px;
  color:#6e6e73;
}

/* Apple Pay text */
.apple-pay{
  margin-top:8px;
  font-size:20px;
  font-weight:600;
}

/* Done button */
.done-btn{
  margin-top:28px;
  width:100%;
  background:#007aff;
  color:#fff;
  border:none;
  padding:14px;
  border-radius:14px;
  font-size:16px;
  font-weight:600;
}


/* ================= ORDER SUMMARY ================= */
/* ===== PAGE WRAPPER ===== */
.invoice-container {
  width: 100%;
  min-height: 100vh;
  padding: 24px 18px 40px;
  box-sizing: border-box;
  background: #ffffff;
}

/* ===== LOGO ===== */
.logo {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 16px;
}

.logo-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

/* ===== HEADER TEXT ===== */
.thanks-text {
  text-align: center;
  font-size: 15px;
  color: #6e6e73;
  margin-bottom: 26px;
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-size: 20px;
  font-weight: 600;
  margin: 28px 0 14px;
}

/* ===== ORDER ROWS ===== */
.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0;
}

.item-title {
  font-size: 16px;
  font-weight: 600;
}

.item-sub {
  font-size: 13px;
  color: #6e6e73;
  margin-top: 4px;
}

.price {
  font-size: 16px;
  font-weight: 600;
}

/* ===== DIVIDERS ===== */
.divider {
  height: 1px;
  background: #e5e5ea;
  margin: 22px 0;
}

/* ===== TOTAL ===== */
.total {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 700;
  margin: 18px 0;
}

/* ===== PAYMENT METHOD BOX ===== */
.payment-box {
  background: #f2f2f7;
  padding: 16px;
  border-radius: 14px;
  font-size: 15px;
  margin-top: 10px;
}

/* ===== ORDER DETAILS ===== */
.details-box {
  background: #f2f2f7;
  padding: 18px;
  border-radius: 14px;
  margin-top: 18px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  font-size: 14px;
}

.paid {
  color: #34c759;
  font-weight: 600;
}

/* ===== BUTTONS ===== */
.action-area {
  display: flex;
  gap: 14px;
  margin: 28px 0;
}

.btn-outline {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #d1d1d6;
  background: #fff;
  font-size: 15px;
}

.btn-primary {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: #007aff;
  color: #fff;
  font-size: 15px;
}

/* ===== FOOTER ===== */
.help-text {
  text-align: center;
  font-size: 13px;
  color: #6e6e73;
  margin-top: 20px;
  line-height: 1.4;
}


/* ================= INVOICE ================= */


body {
  margin: 0;
  background: #f2f2f7;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.invoice-container {
  max-width: 420px;
  margin: auto;
  padding: 40px 22px 50px;
  background: #ffffff;
  min-height: 100vh;
}

.logo {
  text-align: center;
  margin-bottom: 20px;
}

.logo img {
  height: 40px;
}

.thankyou {
  text-align: center;
  font-size: 20px;
  color: #333;
  margin-bottom: 24px;
}

.divider {
  height: 1px;
  background: #e5e5ea;
  margin: 20px 0;
}

.order-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

/* Gift card row layout */
.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 22px 0;
}

/* Left section (image + text) */
.item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Gift card image */
.gift-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  background: #f2f2f7;
  padding: 6px;
}

/* Text */
.item-title {
  font-size: 15px;
  font-weight: 600;
}

.item-sub {
  font-size: 13px;
  color: #6e6e73;
}

/* Price */
.item-price {
  font-size: 15px;
  font-weight: 600;
}


.total-row {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 16px;
}

.total-row.bold {
  font-weight: 700;
}

.info-text {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-top: 24px;
  line-height: 1.4;
}

.report-link {
  display: block;
  text-align: center;
  margin: 10px 0;
  color: #007aff;
  font-weight: 600;
  text-decoration: none;
}

.copyright {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-top: 40px;
}


