*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Poppins', -apple-system, sans-serif;
  background: #ffffff;
  color: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding:
    calc(env(safe-area-inset-top, 44px) + 24px)
    24px
    calc(env(safe-area-inset-bottom, 34px) + 24px);
  gap: 48px;
}

/* ── Header ── */
.header {
  text-align: center;
  max-width: 340px;
}

.header-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: #000;
  margin: 0 0 16px 0;
}

.intro {
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  text-align: left;
}

.intro p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.7);
}

/* ── Button stack ── */
.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 340px;
}

/* ── Haptic button ── */
.hbtn {
  position: relative;
  width: 100%;
  padding: 18px 0;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  cursor: pointer;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #000;
  letter-spacing: -0.1px;
  transition: transform 0.1s ease, background 0.1s ease;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.hbtn:active {
  transform: scale(0.98);
  background: #f5f5f5;
}

/* Ripple */
.ripple-el {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: scale(0);
  width: 80px;
  height: 80px;
  margin-left: -40px;
  margin-top: -40px;
  pointer-events: none;
  animation: ripple 0.5s ease-out forwards;
}

@keyframes ripple {
  0%   { transform: scale(0); opacity: 1; }
  100% { transform: scale(5); opacity: 0; }
}

/* ── Status ── */
.status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34c759;
  flex-shrink: 0;
}

.status-dot.warn { background: #ff9500; }

.status-text {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.35);
}

/* ── QR ── */
.qr-wrap {
  text-align: center;
}

.qr-wrap p {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.35);
  margin-top: 10px;
}
