@layer screens {
  .pay-focus-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    min-height: 0;
    padding: 6px 0;
  }

  .pay-title-block h2 { margin: 0 0 4px; font-size: clamp(1.25rem, 2.2vw, 1.55rem); }

  .pay-perks-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    width: 100%;
  }

  .pay-perks-row span {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--glass-border);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--muted);
  }

  .frame-option {
    position: relative;
    background: var(--surface);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 130ms var(--ease-out), border-color 180ms var(--ease-out);
  }

  .frame-option.selected,
  .style-frame-chip.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(230, 169, 77, 0.24);
  }

  .rec-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.02em;
    z-index: 2;
  }

  .rec-hint { font-size: 11.5px; font-weight: 600; color: var(--accent); }
  .style-frame-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .style-frame-chip {
    position: relative;
    flex: 0 0 112px;
    scroll-snap-align: start;
    background: var(--surface-2);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 10px 8px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 130ms var(--ease-out), border-color 160ms var(--ease-out);
  }

  .style-frame-chip .frame-mini-strip { width: 56px; height: 112px; padding: 5px; gap: 3px; }
  .style-frame-chip span.frame-name { font-size: 11px; font-weight: 700; color: var(--ink); text-align: center; line-height: 1.2; }

  .frame-mini-strip {
    width: 72px;
    height: 152px;
    border-radius: 6px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    position: relative;
    overflow: hidden;
  }

  .frame-mini-slot { flex: 1; border-radius: 2px; background: rgba(128, 128, 128, 0.28); }
  .frame-mini-footer { font-size: 6px; font-weight: 800; letter-spacing: 0.08em; text-align: center; }
  .frame-option span { font-size: 13px; font-weight: 700; color: var(--ink); text-align: center; }

  .pay-card { width: 100%; max-width: 480px; padding: clamp(18px, 2.8vw, 26px); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
  .pay-card-head { width: 100%; display: flex; justify-content: space-between; align-items: center; }

  .qr-card-frame { background: #ffffff; padding: 12px; border-radius: var(--radius-lg); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2); }
  .qr-card-frame img { width: clamp(148px, 22dvh, 184px); height: clamp(148px, 22dvh, 184px); display: block; }
  .qr-card-frame.small img { width: 164px; height: 164px; }

  .pay-amount-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
  }

  .pay-amount { font-size: 24px; color: var(--ink); }

  .voucher-tag {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(89, 195, 122, 0.16);
    color: var(--ok);
    font-size: 12.5px;
    font-weight: 700;
  }

  .pay-card-actions { width: 100%; display: flex; flex-direction: column; gap: 10px; }
  .pay-card-actions .btn { width: 100%; }

  .voucher-input {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: var(--surface);
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
  }

  .touch-keypad { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }

  .key-btn {
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: var(--surface-2);
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
  }

  .error-inline { min-height: 18px; color: var(--danger); font-size: 13px; font-weight: 600; }
}
