:root {
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* Dynamic background blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(80px);
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    opacity: 0.5;
    animation: move 20s infinite alternate linear;
}

.blob-1 {
    background: #4f46e5;
    top: -100px;
    right: -100px;
}

.blob-2 {
    background: #9333ea;
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.blob-3 {
    background: #0ea5e9;
    top: 40%;
    left: 30%;
    width: 300px;
    height: 300px;
    animation-delay: -10s;
}

@keyframes move {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(100px, 100px);
    }
}

/* Glassmorphism Card */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(166px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.fw-800 {
    font-weight: 800;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

/* Custom Inputs & Buttons */
.custom-input-group {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    padding: 6px;
    border: 1px solid var(--border-color);
}

.custom-input {
    background: transparent !important;
    border: none !important;
    color: white !important;
    box-shadow: none !important;
    padding: 12px 16px;
}

.custom-input::placeholder {
    color: var(--text-secondary);
}

.custom-btn {
    background: var(--primary-gradient) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 24px !important;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.custom-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

/* QR Code Display */
.qr-container {
    min-height: 200px;
    transition: all 0.5s ease;
}

.qr-code-wrapper {
    background: white;
    padding: 16px;
    border-radius: 12px;
    display: none;
    /* Hidden until generated */
    animation: fadeIn 0.6s ease;
}

.qr-code-wrapper canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.status-text {
    color: var(--text-secondary);
    font-size: 0.96rem;
}

#downloadControls button {
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    border-color: var(--border-color);
    transition: all 0.3s ease;
}

#downloadControls button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}