:root {
    --primary-color: #6366f1;
    --background-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% -20%, #4338ca 0%, transparent 60%),
                radial-gradient(circle at 0% 100%, #1e1b4b 0%, transparent 40%),
                radial-gradient(circle at 100% 100%, #1e1b4b 0%, transparent 40%);
    z-index: -1;
}

.checkout-container {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin: 1rem;
    animation: fadeIn 0.6s ease-out;
}

.checkout-header {
    text-align: center;
    margin-bottom: 2rem;
}

.checkout-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.checkout-header p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Skeleton Loading Animation */
.skeleton-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skeleton-item {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

.skeleton-item.header { height: 40px; width: 60%; align-self: center; }
.skeleton-item.input { height: 50px; width: 100%; }
.skeleton-item.button { height: 50px; width: 100%; border-radius: 12px; margin-top: 1rem; }

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

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

.checkout-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.security-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

#checkout {
    min-height: 400px;
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .checkout-container {
        padding: 1.5rem;
        margin: 0.5rem;
        border-radius: 20px;
    }
    
    .checkout-header h1 {
        font-size: 1.5rem;
    }
}
