:root {
    color-scheme: dark;
    --bg: #05070d;
    --panel: rgba(12, 18, 30, 0.94);
    --line: rgba(255, 255, 255, 0.12);
    --text: #eef4ff;
    --muted: #a8b4c7;
    --accent: #2f8cff;
    --danger: #ff5b6e;
    --success: #31c48d;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 75% 15%, rgba(47, 140, 255, 0.22), transparent 30%),
        radial-gradient(circle at 15% 90%, rgba(255, 62, 92, 0.13), transparent 26%),
        var(--bg);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: min(100%, 430px);
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
}

.brand {
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 18px;
}

h1 {
    margin: 0 0 8px;
    font-size: 28px;
}

.lead {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.45;
}

form {
    text-align: left;
}

label {
    display: block;
    margin: 14px 0 7px;
    font-weight: 700;
    font-size: 14px;
}

input {
    width: 100%;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
    outline: none;
}

input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(47, 140, 255, 0.18);
}

button {
    width: 100%;
    height: 46px;
    margin-top: 20px;
    border: 0;
    border-radius: 8px;
    color: white;
    background: linear-gradient(135deg, #2f8cff, #1455c8);
    font-weight: 800;
    cursor: pointer;
}

.alert,
.success {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    line-height: 1.35;
}

.alert {
    background: rgba(255, 91, 110, 0.14);
    border: 1px solid rgba(255, 91, 110, 0.35);
    color: #ffd8de;
}

.success {
    background: rgba(49, 196, 141, 0.14);
    border: 1px solid rgba(49, 196, 141, 0.35);
    color: #d5ffef;
}

.switch {
    margin: 18px 0 0;
    color: var(--muted);
    text-align: center;
}

.switch a {
    color: #8fbdff;
    font-weight: 800;
}

.auth-card .alert,
.auth-card .success,
.auth-card .lead,
.auth-card .brand,
.auth-card h1 {
    text-align: center;
}

body.modal-open {
    overflow: hidden;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(2, 6, 15, 0.74);
}

.modal-backdrop[hidden] {
    display: none;
}

.modal-card {
    position: relative;
    width: min(100%, 460px);
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #0c1220;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.55);
}

.modal-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    font-size: 24px;
    line-height: 1;
}

.plan-list {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.notice-box {
    margin: 16px 0;
    padding: 13px 14px;
    border: 1px solid rgba(255, 190, 92, 0.38);
    border-radius: 8px;
    background: rgba(255, 190, 92, 0.12);
    color: #ffe8bd;
    line-height: 1.42;
    font-size: 14px;
}

.plan-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

button.plan-row {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 56px;
    margin: 0;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

button.plan-row::before {
    content: "";
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(214, 230, 255, 0.72);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

button.plan-row.is-selected::before {
    border-color: var(--accent);
    background: radial-gradient(circle, var(--accent) 0 42%, rgba(255, 255, 255, 0.08) 45%);
}

button.plan-row strong {
    flex: 1;
}

.plan-row span {
    color: #d6e6ff;
    font-weight: 800;
    text-align: right;
}

.payment-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin-top: 10px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #2f8cff, #1455c8);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.payment-button.outline,
.secondary-button {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
}

.payment-card {
    width: min(100%, 520px);
}

.modal-message {
    margin: 10px 0 0;
}

.pix-box {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.pix-box img {
    display: block;
    width: min(260px, 100%);
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    background: #fff;
    padding: 10px;
}

.pix-placeholder {
    padding: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    color: var(--muted);
    text-align: center;
    line-height: 1.4;
}

.pix-box textarea {
    min-height: 96px;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
    font: 700 13px Arial, Helvetica, sans-serif;
}
