* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-main: #050505;
    --bg-soft: #0b0b0d;
    --card-bg: rgba(14, 14, 16, 0.96);
    --card-border: rgba(255, 60, 60, 0.18);
    --input-bg: #121214;
    --input-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a8a8b3;
    --text-muted: #6d6d78;
    --accent-red: #ff2b2b;
    --accent-red-strong: #ff1010;
    --accent-green: #00c93c;
    --accent-green-strong: #00b536;
    --success-color: #45d67b;
    --error-color: #ff5c5c;
    --shadow-red: 0 0 30px rgba(255, 25, 25, 0.12);
    --shadow-green: 0 0 30px rgba(0, 201, 60, 0.18);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --max-width: 520px;
}

html,
body {
    min-height: 100%;
    width: 100%;
}

body {
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text-primary);
    background:
        radial-gradient(circle at top center, rgba(255, 0, 0, 0.08), transparent 24%),
        radial-gradient(circle at bottom center, rgba(255, 0, 0, 0.05), transparent 28%),
        linear-gradient(180deg, #090909 0%, #040404 100%);
    line-height: 1.45;
    overflow-x: hidden;
}

.container {
    min-height: 100vh;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header {
    display: none;
}

.main-content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.card {
    width: 100%;
    max-width: var(--max-width);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 26px 22px 18px;
    box-shadow:
        0 18px 60px rgba(0, 0, 0, 0.68),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset,
        var(--shadow-red);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 40px rgba(255, 30, 30, 0.04);
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
}

.logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(255, 230, 0, 0.2));
}

.brand-name {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 0.95;
    font-weight: 900;
    text-align: center;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ff3a3a;
    text-shadow: 0 0 14px rgba(255, 58, 58, 0.16);
}

.tagline {
    text-align: center;
    font-size: 0.88rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #9a9aaa;
    margin-bottom: 14px;
}

.hero-divider {
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-red) 30%, var(--accent-red) 70%, transparent 100%);
    margin: 0 auto 18px;
    box-shadow: 0 0 14px rgba(255, 43, 43, 0.35);
}

.card-title {
    display: none;
}

.card-description {
    max-width: 390px;
    margin: 0 auto 18px;
    text-align: center;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.65;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f2f2f2;
    letter-spacing: 0.2px;
}

.form-input {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    padding: 0 15px;
    font-size: 0.98rem;
    outline: none;
    transition: 0.22s ease;
}

.form-input::placeholder {
    color: #7f7f88;
}

.form-input:focus {
    border-color: rgba(255, 43, 43, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 43, 43, 0.1);
    background: #16161a;
}

.form-error {
    min-height: 18px;
    font-size: 0.8rem;
    color: var(--error-color);
}

.steps-box {
    position: relative;
    background: linear-gradient(180deg, rgba(28, 28, 30, 0.98), rgba(18, 18, 20, 0.98));
    border-radius: var(--radius-lg);
    padding: 16px 16px 16px 22px;
    margin: 10px 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.steps-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff3f3f 0%, #ff1818 100%);
    box-shadow: 0 0 18px rgba(255, 45, 45, 0.25);
}

.steps-list {
    list-style: none;
    display: grid;
    gap: 10px;
    padding-left: 8px;
}

.steps-list li {
    color: #dddddf;
    font-size: 0.96rem;
    line-height: 1.45;
    display: flex;
    gap: 10px;
}

.steps-list li span {
    color: #ffffff;
    font-weight: 700;
    min-width: 18px;
}

.action-stack {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

.btn-primary,
.btn-secondary {
    width: 100%;
    min-height: 56px;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(180deg, #ff3838 0%, #ff1515 100%);
    box-shadow: 0 10px 28px rgba(255, 25, 25, 0.22);
}

.btn-primary:hover:not(:disabled),
.btn-secondary:hover:not(:disabled),
.btn-copy:hover {
    transform: translateY(-1px);
}

.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-secondary {
    color: #ffffff;
    background: linear-gradient(180deg, #07ce43 0%, #00b837 100%);
    box-shadow: 0 10px 28px rgba(0, 201, 60, 0.2);
}

.btn-text {
    display: inline;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffffff;
    animation: spin 0.7s linear infinite;
}

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

.result-container {
    margin-top: 14px;
    border-radius: var(--radius-lg);
    background: rgba(10, 10, 12, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 14px;
}

.result-title {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.result-success .result-title {
    color: var(--success-color);
}

.result-error .result-title {
    color: var(--error-color);
}

.codigo-box {
    background: #121214;
    border: 1px solid rgba(255, 70, 70, 0.22);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.codigo-text {
    flex: 1;
    min-width: 0;
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffffff;
    font-family: "Courier New", monospace;
    word-break: break-all;
}

.btn-copy {
    border: none;
    background: rgba(255, 43, 43, 0.12);
    color: #ffffff;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.result-info {
    margin-top: 10px;
    text-align: center;
    color: var(--success-color);
    font-size: 0.88rem;
}

.error-text {
    text-align: center;
    color: var(--error-color);
    font-size: 0.93rem;
}

.info-box {
    margin-top: 16px;
    text-align: center;
    padding: 0;
    background: transparent;
    border: none;
}

.info-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.info-text strong {
    color: var(--text-secondary);
}

.footer {
    margin-top: 10px;
    text-align: center;
    padding: 0;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
}

@media (min-width: 900px) {
    .container {
        padding: 28px;
    }

    .card {
        max-width: 560px;
        padding: 32px 30px 22px;
    }

    .card-description {
        max-width: 430px;
        font-size: 1.02rem;
    }

    .steps-box {
        padding: 18px 18px 18px 24px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 10px;
    }

    .card {
        border-radius: 20px;
        padding: 20px 16px 16px;
    }

    .logo {
        width: 62px;
        height: 62px;
    }

    .tagline {
        font-size: 0.78rem;
        letter-spacing: 2px;
        margin-bottom: 12px;
    }

    .card-description {
        font-size: 0.92rem;
        margin-bottom: 14px;
    }

    .steps-box {
        padding: 14px 14px 14px 18px;
        margin-bottom: 14px;
    }

    .steps-list {
        gap: 8px;
    }

    .steps-list li {
        font-size: 0.9rem;
    }

    .btn-primary,
    .btn-secondary {
        min-height: 52px;
        border-radius: 14px;
        font-size: 0.96rem;
    }

    .codigo-box {
        flex-direction: column;
        align-items: stretch;
    }

    .codigo-text {
        text-align: center;
    }

    .btn-copy {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .brand-name {
        font-size: 1.72rem;
    }

    .card-description {
        font-size: 0.88rem;
    }

    .form-input {
        min-height: 48px;
        font-size: 0.95rem;
    }

    .btn-primary,
    .btn-secondary {
        min-height: 50px;
        font-size: 0.92rem;
    }

    .footer,
    .info-text {
        font-size: 0.75rem;
    }
}