#tab3 {
  padding: 44px 4px 0;
}

#tab3[hidden] {
  display: none;
}

/* ─── Heading ─── */
#tab3 .tab-three-heading {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 50px;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

#tab3 .tab-three-back {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0;
  background: var(--bg-card);
  color: var(--accent);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 150ms ease, border-color 150ms ease;
  -webkit-tap-highlight-color: transparent;
}

#tab3 .tab-three-back:active {
  background: var(--accent-faint);
  border-color: rgba(0, 230, 118, 0.4);
}

#tab3 .tab-three-back .icon {
  width: 26px;
  height: 26px;
}

#tab3 h1 {
  margin: 0;
  color: var(--ink);
  font-family: 'Sora', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: center;
}

/* ─── Summary Card ─── */
#tab3 .tab-three-summary {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-card);
  padding: 6px 4px;
  background: var(--bg-card);
  overflow: hidden;
  position: relative;
}

#tab3 .tab-three-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 230, 118, 0.4), transparent);
}

#tab3 .tab-three-row {
  min-height: 52px;
  padding: 10px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
  border-bottom: 1px solid rgba(0, 230, 118, 0.08);
}

#tab3 .tab-three-row:last-child {
  border-bottom: 0;
}

#tab3 .tab-three-row > span:first-child {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

#tab3 .tab-three-row strong {
  max-width: 220px;
  overflow: hidden;
  font-weight: 600;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  color: var(--accent);
  letter-spacing: -0.01em;
}

/* ─── Terms Checkbox ─── */
#tab3 .tab-three-terms {
  display: inline-grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 28px 0 0 4px;
  color: var(--ink-2);
  cursor: pointer;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  -webkit-tap-highlight-color: transparent;
  transition: color 150ms ease;
}

#tab3 .tab-three-terms:hover {
  color: var(--ink);
}

#tab3 .tab-three-terms.field-error {
  color: var(--red);
  animation: tab3FieldShake 240ms ease;
}

#tab3 .tab-three-terms.field-error .tab-three-check {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-dim);
}

#tab3 .tab-three-terms input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#tab3 .tab-three-check {
  width: 26px;
  height: 26px;
  border: 2px solid var(--ink-3);
  border-radius: 8px;
  background: transparent;
  display: grid;
  place-items: center;
  transition: border-color 150ms ease, background 150ms ease;
  flex-shrink: 0;
}

#tab3 .tab-three-check::after {
  content: "";
  width: 12px;
  height: 6px;
  border-left: 2.5px solid var(--bg);
  border-bottom: 2.5px solid var(--bg);
  opacity: 0;
  transform: rotate(-45deg) translate(1px, -1px);
  transition: opacity 120ms ease;
}

#tab3 .tab-three-terms input:checked + .tab-three-check {
  background: var(--accent);
  border-color: var(--accent);
}

#tab3 .tab-three-terms input:checked + .tab-three-check::after {
  opacity: 1;
}

/* ─── Confirm Button ─── */
#tab3 .tab-three-action {
  width: 100%;
  min-height: 60px;
  margin-top: 28px;
  border: 0;
  border-radius: 16px;
  background: var(--accent);
  color: #071210;
  cursor: pointer;
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 24px rgba(0, 230, 118, 0.28), 0 1px 0 rgba(255, 255, 255, 0.15) inset;
  transition: transform 120ms ease, box-shadow 120ms ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

#tab3 .tab-three-action::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.14) 0%, transparent 60%);
}

#tab3 .tab-three-action:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 2px 12px rgba(0, 230, 118, 0.2);
}

@keyframes tab3FieldShake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-5px); }
  75%       { transform: translateX(5px); }
}

@media (max-width: 360px) {
  #tab3 { padding-right: 0; padding-left: 0; }
  #tab3 h1 { font-size: 21px; }
  #tab3 .tab-three-row, #tab3 .tab-three-terms { font-size: 14px; }
}
