/*
 * Transaction pages only: /register (account + plan steps) and /registration/success.
 * Q-066: the concept's tokens. Everything is scoped under .txn so the rest of the portal keeps
 * its current theme. One neon element per frame: the primary CTA. Electric blue marks steps and
 * section markers; it is never a second CTA.
 */
.txn {
    --txn-ink: #07090C;
    --txn-panel: #111821;
    --txn-line: #1F2A36;
    --txn-text: #E6EDF3;
    --txn-muted: #8B98A5;
    --txn-neon: #39FF14;
    --txn-electric: #2979FF;
    --txn-danger: #FF6B6B;

    background: var(--txn-ink);
    color: var(--txn-text);
    font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    margin: -1.1rem -1.5rem 0;
    padding: 16px;
    min-height: calc(100vh - 3.5rem);
}

.txn *,
.txn *::before,
.txn *::after {
    box-sizing: border-box;
}

.txn-frame {
    max-width: 560px;
    margin: 0 auto;
    background: var(--txn-panel);
    border: 1px solid var(--txn-line);
    border-radius: 12px;
    padding: 20px 16px;
}

.txn-frame.wide {
    max-width: 960px;
}

/* Steps: electric markers */
.txn-steps {
    display: flex;
    gap: 16px;
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    font-size: 13px;
    color: var(--txn-muted);
}

.txn-steps li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.txn-steps .num {
    display: inline-flex;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--txn-line);
    font-size: 12px;
}

.txn-steps .current {
    color: var(--txn-text);
}

.txn-steps .current .num,
.txn-steps .done .num {
    border-color: var(--txn-electric);
    background: var(--txn-electric);
    color: #fff;
}

.txn-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--txn-text);
}

.txn-sub {
    margin: 0 0 16px;
    color: var(--txn-muted);
    font-size: 14px;
}

.txn-marker {
    border-left: 3px solid var(--txn-electric);
    padding-left: 8px;
}

/* Fields */
.txn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
}

.txn-grid .full {
    grid-column: 1 / -1;
}

.txn-field label {
    display: block;
    font-size: 13px;
    color: var(--txn-muted);
    margin-bottom: 4px;
}

.txn-field input {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 12px;
    font: inherit;
    color: var(--txn-text);
    background: var(--txn-ink);
    border: 1px solid var(--txn-line);
    border-radius: 8px;
    outline: none;
}

.txn-field input:focus {
    border-color: var(--txn-electric);
    box-shadow: 0 0 0 2px rgba(41, 121, 255, 0.35);
}

.txn-field input.invalid {
    border-color: var(--txn-danger);
}

.txn .validation-message {
    color: var(--txn-danger);
    font-size: 12px;
    margin-top: 2px;
}

.txn-hint {
    font-size: 12px;
    color: var(--txn-muted);
    margin-top: 2px;
}

.txn-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    color: var(--txn-muted);
    margin-top: 12px;
}

.txn-check input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    flex: 0 0 auto;
    accent-color: var(--txn-electric);
}

.txn a {
    color: var(--txn-electric);
}

/* The one neon element in a frame */
.txn-cta {
    display: block;
    width: 100%;
    height: 48px;
    margin-top: 16px;
    border: 0;
    border-radius: 8px;
    background: var(--txn-neon);
    color: var(--txn-ink);
    font: inherit;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    line-height: 48px;
    text-decoration: none;
    cursor: pointer;
}

.txn-cta:hover {
    filter: brightness(0.92);
    color: var(--txn-ink);
}

.txn-cta:disabled {
    background: var(--txn-line);
    color: var(--txn-muted);
    cursor: not-allowed;
}

/* Secondary actions: outlined, never neon */
.txn-secondary {
    display: inline-block;
    padding: 10px 14px;
    border: 1px solid var(--txn-line);
    border-radius: 8px;
    background: transparent;
    color: var(--txn-text);
    font: inherit;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

.txn-secondary:hover {
    border-color: var(--txn-electric);
    color: var(--txn-text);
}

.txn-foot {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--txn-muted);
    text-align: center;
}

.txn-alert {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--txn-danger);
    color: var(--txn-danger);
    font-size: 14px;
}

.txn-note {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--txn-line);
    color: var(--txn-text);
    font-size: 14px;
}

.txn-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--txn-line);
    border-top-color: var(--txn-electric);
    border-radius: 50%;
    animation: txn-spin 0.8s linear infinite;
    margin: 24px auto 12px;
}

@keyframes txn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Plan step */
.txn-plans {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.txn-plan {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    background: var(--txn-ink);
    color: var(--txn-text);
    border: 1px solid var(--txn-line);
    border-radius: 10px;
    font: inherit;
    cursor: pointer;
}

.txn-plan:hover {
    border-color: var(--txn-electric);
}

.txn-plan.selected {
    border-color: var(--txn-electric);
    box-shadow: inset 4px 0 0 var(--txn-electric);
}

.txn-plan-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.txn-plan-name {
    font-weight: 600;
    font-size: 17px;
}

.txn-plan-price {
    font-size: 13px;
    color: var(--txn-muted);
}

.txn-plan-meta {
    font-size: 13px;
    color: var(--txn-muted);
    margin-top: 2px;
}

.txn-included {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--txn-muted);
    columns: 1;
}

.txn-included li::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--txn-electric);
    border-radius: 1px;
    margin-right: 8px;
    vertical-align: middle;
}

@media (min-width: 641px) {
    .txn {
        /* MainLayout pads article 2rem left / 1.5rem right at this width */
        margin: -1.1rem -1.5rem 0 -2rem;
        padding: 32px 24px;
    }

    .txn-frame {
        padding: 28px;
    }

    .txn-plans {
        grid-template-columns: repeat(3, 1fr);
    }

    .txn-included {
        columns: 2;
    }
}
