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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #fff;
}

.checkout-wrapper {
    width: 100%;
    max-width: 440px;
}

.checkout-header {
    text-align: center;
    margin-bottom: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.logo-text span {
    color: #22c55e;
}

.checkout-card {
    background: #141414;
    border: 1px solid #262626;
    border-radius: 16px;
    overflow: hidden;
}

.card-header {
    background: #1a1a1a;
    padding: 20px 24px;
    border-bottom: 1px solid #262626;
}

.card-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.card-header p {
    font-size: 14px;
    color: #737373;
    margin-top: 4px;
}

.card-body {
    padding: 24px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #a3a3a3;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: #1a1a1a;
    border: 1px solid #262626;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-group input::placeholder {
    color: #525252;
}

.form-hint {
    font-size: 12px;
    color: #525252;
    margin-top: 6px;
}

.amount-input-wrapper {
    position: relative;
}

.amount-input-wrapper .currency-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #22c55e;
    font-weight: 600;
}

.amount-input-wrapper input {
    padding-left: 50px;
    font-size: 20px;
    font-weight: 600;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    width: 100%;
    padding: 14px;
    background: #1a1a1a;
    border: 1px solid #262626;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 12px;
}

.btn-secondary:hover {
    background: #262626;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    display: none;
}

#pix-result { display: none; }

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

.pix-amount-label {
    font-size: 14px;
    color: #737373;
    margin-bottom: 4px;
}

.pix-amount-value {
    font-size: 36px;
    font-weight: 700;
    color: #22c55e;
}

.qr-container {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin: 20px auto;
    width: fit-content;
}

.qr-container img {
    display: block;
    width: 200px;
    height: 200px;
}

.status-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: #1a1a1a;
    border-radius: 10px;
    margin: 20px 0;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.pending {
    background: #eab308;
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
}

.status-dot.paid {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
    animation: none;
}

.status-dot.expired {
    background: #ef4444;
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    font-size: 15px;
    font-weight: 500;
}

.status-text.pending { color: #eab308; }
.status-text.paid { color: #22c55e; }
.status-text.expired { color: #ef4444; }

.pix-code-section { margin-top: 20px; }

.pix-code-label {
    font-size: 13px;
    color: #737373;
    margin-bottom: 8px;
}

.pix-code-box {
    background: #1a1a1a;
    border: 1px solid #262626;
    border-radius: 10px;
    padding: 14px;
}

.pix-code-text {
    font-family: monospace;
    font-size: 11px;
    color: #a3a3a3;
    word-break: break-all;
    line-height: 1.5;
    max-height: 80px;
    overflow-y: auto;
}

.btn-copy {
    width: 100%;
    padding: 14px;
    background: #262626;
    border: 1px solid #404040;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-copy:hover { background: #333; }
.btn-copy.copied { background: #22c55e; border-color: #22c55e; }

.timer-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px;
    background: rgba(234, 179, 8, 0.1);
    border-radius: 10px;
}

.timer-text {
    font-size: 14px;
    color: #eab308;
}

.timer-value {
    font-weight: 700;
    font-family: monospace;
}

.info-text {
    text-align: center;
    font-size: 13px;
    color: #525252;
    margin-top: 16px;
}

.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.success-overlay.show {
    opacity: 1;
    visibility: visible;
}

.success-content {
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s;
}

.success-overlay.show .success-content {
    transform: scale(1);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
}

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

.success-subtitle {
    color: #737373;
    font-size: 16px;
}

.realtime-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #525252;
    margin-top: 12px;
}

.realtime-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.checkout-footer {
    text-align: center;
    margin-top: 20px;
    padding: 16px;
}

.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #525252;
    font-size: 12px;
}

.secure-badge svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 480px) {
    .card-body { padding: 20px 16px; }
    .qr-container img { width: 180px; height: 180px; }
    .pix-amount-value { font-size: 28px; }
}
