:root {
    --pl-green: #3CDD3C;
    --pl-green-dark: #22b322;
    --pl-dark: #101010;
    --pl-light: #f4f5f5;
    --pl-muted: #777;
    --pl-border: #e4e6e6;
    --pl-danger: #d93025;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--pl-light);
    color: var(--pl-dark);
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.pl-test-badge {
    background: #ffb020;
    color: var(--pl-dark);
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 6px 12px;
}

.pl-wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 32px 16px 24px;
}

.pl-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.pl-tenant-logo { max-height: 48px; max-width: 200px; }
.pl-tenant-name { font-weight: 800; font-size: 20px; }
.pl-logo { height: 16px; }
.pl-by { color: var(--pl-muted); font-size: 13px; }

.pl-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 10px 40px rgba(16, 16, 16, .06);
}

.pl-concept { margin: 0 0 4px; color: var(--pl-muted); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.pl-amount { margin: 0 0 16px; font-size: 40px; font-weight: 800; line-height: 1.1; }
.pl-amount small { font-size: 16px; font-weight: 600; color: var(--pl-muted); }
.pl-description { color: #333; white-space: pre-line; margin: 0 0 20px; }

.pl-meta { list-style: none; margin: 0 0 24px; padding: 16px 0 0; border-top: 1px solid var(--pl-border); font-size: 14px; }
.pl-meta li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.pl-meta span:first-child { color: var(--pl-muted); }
.pl-meta span:last-child { text-align: right; word-break: break-all; }

.pl-btn {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 16px 20px;
    background: var(--pl-green);
    color: var(--pl-dark);
    font: inherit;
    font-weight: 800;
    font-size: 17px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background .15s ease, transform .05s ease;
}
.pl-btn:hover { background: var(--pl-green-dark); }
.pl-btn:active { transform: translateY(1px); }
.pl-btn[disabled] { opacity: .6; cursor: wait; }
.pl-btn-loading::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: .5em;
    vertical-align: -.15em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: pl-spin .75s linear infinite;
}
@keyframes pl-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pl-btn-loading::before { animation-duration: 1.5s; } }
.pl-btn-secondary { background: var(--pl-light); margin-top: 12px; }
.pl-btn-secondary:hover { background: var(--pl-border); }
.pl-btn-outline { background: transparent; box-shadow: inset 0 0 0 2px var(--pl-green); margin-top: 12px; }
.pl-btn-outline:hover { background: var(--pl-light); }

.pl-secure { margin: 14px 0 0; text-align: center; color: var(--pl-muted); font-size: 13px; }
.pl-error { background: #fdecea; color: var(--pl-danger); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; }
.pl-success { display: flex; align-items: center; gap: 10px; background: #e4f7e7; color: #176d2d; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; }
.pl-success-check { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; background: #176d2d; color: #fff; font-weight: 800; }

.pl-state { text-align: center; }
.pl-state h1 { font-size: 22px; margin: 12px 0 8px; }
.pl-state p { color: var(--pl-muted); margin: 0 0 8px; }
.pl-icon {
    width: 64px; height: 64px; margin: 0 auto;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; font-weight: 800;
    background: var(--pl-light);
}
.pl-state-ok .pl-icon { background: var(--pl-green); }
.pl-state-error .pl-icon { background: #fdecea; color: var(--pl-danger); }

.pl-footer { text-align: center; color: var(--pl-muted); font-size: 12px; margin-top: 20px; }
.pl-footer strong { color: var(--pl-dark); }

@media (max-width: 480px) {
    .pl-card { padding: 24px 20px; }
    .pl-amount { font-size: 34px; }
}

.pl-code-form { margin-top: 20px; }
.pl-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.pl-label[hidden] { display: none; }
.pl-input { box-sizing: border-box; width: 100%; padding: 14px 16px; margin-bottom: 16px; border: 1px solid var(--pl-border); border-radius: 12px; font: inherit; font-size: 18px; letter-spacing: .06em; text-align: center; }
.pl-input:focus { outline: none; border-color: var(--pl-green); box-shadow: 0 0 0 3px rgba(0, 0, 0, .06); }