.ept-back { display: inline-block; margin-bottom: 16px; font-weight: 600; }
.ept-back::before { content: "← "; }
.ept-test { margin: 0 0 16px; padding: 12px 16px; border: 1px solid #eadebc; border-radius: 13px; background: #faf6e9; color: #5f5235; font-size: 14px; font-weight: 600; }
.ept-gate, .ept-form, .ept-orders { padding: 24px 28px; margin-bottom: 24px; }
.ept-form h2, .ept-orders h2 { font-size: 20px; margin: 0 0 12px; }
.ept-form h2:not(:first-child) { margin-top: 24px; }
#ept-currency-field { margin-top: 16px; }
.ept-providers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.ept-provider { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; cursor: pointer; text-align: left; }
.ept-provider span,.ept-provider small { font-size: 13px; color: var(--muted); }
.ept-provider[aria-checked="true"] { border: 2px solid var(--jade); background: var(--soft); }
.ept-provider:disabled { cursor: default; opacity: .65; }
.ept-provider:focus-visible,.ept-package:focus-visible { outline: 3px solid var(--jade); outline-offset: 3px; }
.ept-packages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ept-package { display: grid; gap: 4px; padding: 18px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  font: inherit; text-align: center; cursor: pointer; color: var(--ink); }
.ept-package strong { font-size: 20px; color: var(--jade); }
.ept-package span { color: var(--muted); font-size: 14px; }
.ept-package:hover { background: var(--soft); }
.ept-package[aria-checked="true"] { border: 2px solid var(--jade); background: var(--soft); }
.ept-balance { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 28px; margin-bottom: 24px; }
.ept-balance h2 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ept-points { margin: 0; font-size: 28px; font-weight: 800; color: var(--jade); }
#ept-form-status { margin: 12px 0; }
.ept-orders .table-scroll { overflow-x: auto; }
.ept-orders table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.ept-orders th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.ept-orders th, .ept-orders td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.ept-qr { padding: 24px 28px; margin-bottom: 24px; max-width: 460px; }
.ept-qr-amount { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.ept-qr-amount strong { font-size: 26px; color: var(--jade); }
.ept-qr-amount span { color: var(--muted); font-size: 14px; }
.ept-qr-code { width: 250px; max-width: 100%; aspect-ratio: 1; margin: 4px auto 8px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ept-qr-code svg, .ept-qr-code img { display: block; width: 100%; height: 100%; }
.ept-qr-rails { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); margin: 0; }
.ept-qr-timer { text-align: center; font-weight: 700; margin: 10px 0 4px; }
.ept-qr-timer b { color: var(--jade); }
.ept-qr-steps { margin: 12px 0; padding-left: 20px; font-size: 14px; }
.ept-qr-ref { text-align: center; font-size: 13px; color: var(--muted); margin: 6px 0 12px; overflow-wrap: anywhere; }
.ept-qr-ref code { color: var(--ink); font-weight: 700; }
.ept-qr-actions { display: grid; gap: 10px; }
.ept-qr-done { text-align: center; padding: 8px 0; }
.ept-qr-done .ept-qr-mark { font-size: 42px; line-height: 1; color: var(--jade); }
.ept-qr-done.bad .ept-qr-mark { color: #b42318; }
.ept-qr-done h3 { margin: 8px 0 4px; font-size: 20px; }
[data-error] { color: #b42318; }
@media (max-width: 700px) {
  .ept-balance { display: block; padding: 20px 18px; }
  .ept-balance h2 { margin-bottom: 8px; }
  .ept-balance p { margin: 0; }
  .ept-balance .ept-points { margin-bottom: 8px; }
  .ept-packages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ept-gate, .ept-form, .ept-orders, .ept-qr { padding: 18px; }
}
