:root {
    --bg-primary: #0f1115;
    --bg-secondary: rgba(25, 28, 36, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --card-border: rgba(255, 255, 255, 0.08);
    --success: #10b981;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 40px 20px;
}

/* Dynamic Background Glows */
.background-elements {
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none; /* FIX: Impede que o fundo roube o clique do mouse */
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 10s ease-in-out infinite alternate;
    pointer-events: none; /* FIX */
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, 0.3); /* Blue */
    top: -100px;
    left: -100px;
}

.glow-2 {
    width: 300px;
    height: 300px;
    background: rgba(139, 92, 246, 0.2); /* Purple */
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 30px) scale(1.1); }
}

/* Main Container (Glassmorphism) */
.checkout-container {
    position: relative;
    z-index: 1;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    margin: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Header */
.checkout-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.logo-icon {
    font-size: 28px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Order Summary */
.order-summary {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.order-summary:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.15);
}

.product-info h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.product-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.price-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    color: var(--success);
}

.currency {
    font-size: 18px;
    font-weight: 600;
    margin-top: 4px;
}

.amount {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1px;
}

/* Payment Methods */
.payment-methods {
    text-align: center;
    margin-bottom: 32px;
}

.payment-methods p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 12px;
}

.card-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.card-icon {
    height: 24px;
    opacity: 0.7;
    filter: grayscale(0.5);
    transition: all 0.2s ease;
}

.card-icon:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.1);
}

.international-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Pay Button */
.pay-btn {
    width: 100%;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.pay-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.pay-btn:active {
    transform: translateY(0);
}

.pay-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

.hidden {
    display: none;
}

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

/* Footer */
.checkout-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 480px) {
    .checkout-container {
        padding: 30px 20px;
        border-radius: 20px;
        width: 90%;
    }
}
