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

:root {
    --primary-color: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --secondary-color: #ec4899;
    --background: #0f172a;
    --surface: #1e293b;
    --surface-light: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --success: #10b981;
    --error: #ef4444;
    --border-radius: 16px;
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    padding: 40px 0;
}

.logo h1 {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Steps */
.step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card */
.card {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.card h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-primary);
}

/* Credits Display */
.credits-display {
    text-align: center;
    margin: 30px 0;
}

.credits-amount {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.credits-label {
    display: block;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-top: 5px;
}

/* Price Display */
.price-display {
    text-align: center;
    margin: 20px 0 40px;
    padding: 20px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.currency {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-right: 5px;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-light);
}

/* Slider */
.slider-container {
    margin: 40px 0;
}

.credits-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--surface-light);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.credits-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.5);
    transition: transform 0.2s;
}

.credits-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.credits-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.5);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Form */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
}

.form-group .icon {
    margin-right: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--surface-light);
    border-radius: 10px;
    background: var(--background);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Order Summary */
.order-summary {
    background: var(--background);
    padding: 20px;
    border-radius: 12px;
    margin: 30px 0;
}

.order-summary h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: var(--text-secondary);
}

.summary-row.total {
    border-top: 2px solid var(--surface-light);
    margin-top: 10px;
    padding-top: 15px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}

/* Buttons */
.btn-primary, .btn-secondary {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
    background: var(--surface-light);
    color: var(--text-primary);
    margin-bottom: 10px;
}

.btn-secondary:hover {
    background: var(--surface);
}

.button-group {
    display: flex;
    gap: 15px;
}

.button-group .btn-primary,
.button-group .btn-secondary {
    margin-bottom: 0;
}

/* Payment Section */
.payment-info {
    text-align: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 50px;
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 30px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.qrcode-container {
    background: white;
    padding: 30px;
    border-radius: 16px;
    margin: 30px auto;
    max-width: 300px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qrcode-container img {
    max-width: 100%;
    height: auto;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

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

.pix-instructions {
    background: var(--background);
    padding: 20px;
    border-radius: 12px;
    margin: 30px 0;
    text-align: left;
}

.pix-instructions h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.pix-instructions ol {
    padding-left: 20px;
}

.pix-instructions li {
    color: var(--text-secondary);
    margin: 8px 0;
}

.payment-details {
    background: var(--background);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: var(--text-secondary);
}

/* Success Card */
.success-card {
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 30px;
    color: white;
}

.success-message {
    color: var(--text-secondary);
    margin: 20px 0 30px;
    font-size: 1.1rem;
}

.success-details {
    background: var(--background);
    padding: 20px;
    border-radius: 12px;
    margin: 30px 0;
}

.success-details p {
    margin: 10px 0;
    color: var(--text-secondary);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .card {
        padding: 25px;
    }

    .logo h1 {
        font-size: 2.5rem;
    }

    .credits-amount {
        font-size: 3rem;
    }

    .button-group {
        flex-direction: column;
    }
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}


/* Compact Layout Improvements */
.card {
    padding: 25px; /* Reduced padding */
}

.card h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.qrcode-container {
    margin: 20px auto;
    padding: 15px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qrcode-container img {
    display: block;
    margin: 0 auto;
}

/* Help Button */
.help-btn {
    background: none;
    border: none;
    color: var(--primary-light);
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: underline;
    margin-left: 5px;
    padding: 0;
}

.help-btn:hover {
    color: var(--primary-color);
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--surface);
    padding: 20px;
    border-radius: var(--border-radius);
    max-width: 90%;
    width: 500px;
    position: relative;
    text-align: center;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--text-secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--text-primary);
}

.tutorial-img {
    max-width: 100%;
    border-radius: 8px;
    margin: 15px 0;
    border: 2px solid var(--surface-light);
}

.truncate-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    display: inline-block;
    vertical-align: middle;
}

