:root {
    --bg: #000000;
    --panel: rgba(255, 255, 255, 0.04);
    --panel-strong: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.10);
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.68);
    --muted-2: rgba(255, 255, 255, 0.55);
    --accent: #0038e5;
    --accent-2: #002db3;
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.14);
    --success: #0038e5;
    --success-bg: rgba(0, 56, 229, 0.14);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    min-height: 100vh;
    padding: 0;
    color: var(--text);
}

.checkout-wrapper {
    display: flex;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
}

.checkout-form-section {
    flex: 1;
    padding: 40px 60px;
    background: var(--bg);
    overflow-y: auto;
}

.checkout-summary-section {
    width: 420px;
    background: #111111;
    color: var(--text);
    padding: 40px;
    position: sticky;
    top: 100px;
    height: max-content;
    overflow-y: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    font-weight: 600;
    margin-right: 12px;
    font-size: 14px;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--muted);
    font-size: 14px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.input-wrapper input::placeholder {
    color: var(--muted-2);
}

.input-wrapper input:focus {
    outline: none;
    border-color: rgba(0, 56, 229, 0.65);
    box-shadow: 0 0 0 3px rgba(0, 56, 229, 0.12);
}

.input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-2);
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.row-3 {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
}

.row--3cols {
    grid-template-columns: 1fr 1fr 1fr;
}

.lookup-btn {
    padding: 12px 20px;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.2s;
}

.lookup-btn:hover {
    background: var(--accent-2);
}

.payment-methods {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.payment-method-btn {
    flex: 1;
    padding: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text);
}

.payment-method-btn:hover {
    border-color: rgba(255, 255, 255, 0.04);
}

.payment-method-btn.active {
    border-color: rgb(0 56 229);
    background: #0963971c;
    color: var(--accent);
}

.payment-method-btn .icon {
    font-size: 20px;
}

.payment-method-btn .icon svg {
    display: block;
    fill: #ffffff;
}

.payment-method-btn.active .icon svg {
    fill: var(--accent);
}

.discount-badge {
    background: rgba(0, 56, 229, 0.16);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.summary-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.summary-subtitle {
    font-size: 14px;
    color: #a0aec0;
    margin-bottom: 32px;
}

.plan-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.plan-name {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.plan-name-icon {
    font-size: 24px;
}

.plan-name-text {
    font-size: 18px;
    font-weight: 600;
}

.plan-description {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 12px;
}

.change-plan-link {
    color: var(--accent);
    font-size: 14px;
    text-decoration: none;
}

.change-plan-link:hover {
    text-decoration: underline;
}

.benefits-list {
    list-style: none;
    margin-bottom: 32px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.benefit-check {
    color: var(--accent);
    font-size: 18px;
}

.price-breakdown {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding-top: 20px;
    margin-bottom: 20px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.price-row.discount {
    color: var(--accent);
}

.price-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    margin-bottom: 24px;
}

.total-label {
    font-size: 16px;
    font-weight: 600;
}

.total-value {
    font-size: 32px;
    font-weight: 700;
}

.billing-info {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 24px;
}

.complete-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.complete-btn:hover {
    background: var(--accent-2);
    transform: translateY(-2px);
}

.complete-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.terms-text {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    margin-top: 16px;
    line-height: 1.6;
}

.terms-text a {
    color: var(--accent);
    text-decoration: none;
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.badge-item {
    font-size: 11px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.payment-form-section {
    display: none;
}

.payment-form-section.active {
    display: block;
}

.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.alert-success {
    background: var(--success-bg);
    color: var(--text);
    border: 1px solid rgba(0, 56, 229, 0.35);
}

.alert-error {
    background: var(--danger-bg);
    color: var(--text);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.pix-container {
    text-align: center;
    padding: 20px;
}

.pix-qrcode {
    max-width: 300px;
    margin: 20px auto;
}

.pix-code {
    background: rgba(255, 255, 255, 0.06);
    padding: 15px;
    border-radius: 8px;
    word-break: break-all;
    font-family: monospace;
    margin-top: 15px;
    font-size: 12px;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.14);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
    .checkout-wrapper {
        flex-direction: column;
    }
    
    .checkout-summary-section {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .checkout-form-section {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .row--3cols,
    .row-3 {
        grid-template-columns: 1fr;
    }
}

.otp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.otp-modal-overlay.active {
    display: flex;
}

.otp-modal {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.otp-header h3 {
    margin-bottom: 10px;
    color: var(--text);
}

.otp-header p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 20px;
}