.bg-animated {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 20% 30%, #a71c1c22 0%, transparent 70%),
        radial-gradient(ellipse at 80% 70%, #1e293b22 0%, transparent 70%);
    animation: bgMove 12s ease-in-out infinite alternate;
}

@keyframes bgMove {
    0% {
        background-position: 20% 30%, 80% 70%;
    }

    100% {
        background-position: 30% 40%, 70% 60%;
    }
}

.glass-premium {
    background: rgba(255, 255, 255, 0.90);
    border: 2px solid rgba(167, 28, 28, 0.13);
    box-shadow: 0 12px 40px 0 rgba(55, 0, 60, 0.13), 0 2px 12px 0 rgba(167, 28, 28, 0.10);
    animation: fadeIn 1.1s cubic-bezier(.4, 0, .2, 1);
}

.divider {
    height: 2.5px;
    background: linear-gradient(90deg, #a71c1c 0%, #fff 100%);
    opacity: 0.22;
    border-radius: 1.5px;
    box-shadow: 0 1px 4px #a71c1c11;
}

.qr-code-placeholder {
    width: 100%;
    max-width: 256px;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f3f4f6 60%, #e0e7ef 100%);
    border-radius: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
    text-align: center;
    border: 2.5px dashed #a71c1c !important;
    animation: fadeIn 1.2s cubic-bezier(.4, 0, .2, 1);
}

.qr-code-img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s, transform 0.3s;
    animation: fadeIn 1.2s cubic-bezier(.4, 0, .2, 1);
}

.qr-code-img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.glass-card-float {
    box-shadow: 0 8px 32px 0 #a71c1c22, 0 1.5px 8px 0 #a71c1c11;
    animation: fadeIn 1.2s cubic-bezier(.4, 0, .2, 1);
}

.input-premium:focus {
    border-color: #a71c1c;
    box-shadow: 0 0 0 2px #a71c1c33;
}

.premium-btn {
    background: linear-gradient(90deg, #a71c1c 0%, #e11d48 100%);
    color: #fff;
    box-shadow: 0 2px 8px #a71c1c22;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}

.premium-btn:hover,
.premium-btn:focus {
    background: linear-gradient(90deg, #7c1515 0%, #be185d 100%);
    box-shadow: 0 4px 16px #a71c1c33;
    transform: translateY(-2px) scale(1.03);
}

.premium-btn:active {
    background: linear-gradient(90deg, #a71c1c 0%, #e11d48 100%);
    box-shadow: 0 1px 4px #a71c1c22;
    transform: scale(0.98);
}

.footer-badge {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.85);
    color: #a71c1c;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 1.5rem;
    box-shadow: 0 2px 8px #a71c1c11;
    padding: 0.5rem 1.5rem;
    letter-spacing: 0.03em;
    z-index: 50;
    opacity: 0.96;
    user-select: none;
    width: max-content;
}

.animate-fade-in {
    animation: fadeIn 1.1s cubic-bezier(.4, 0, .2, 1);
}

.eye-shape-selector button {
    border: 2px solid transparent;
    border-radius: 0.5rem;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease-in-out;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eye-shape-selector button:hover {
    border-color: #e11d48;
}

.eye-shape-selector button.active {
    background-color: #a71c1c;
    color: white;
    border-color: #a71c1c;
}

/* QR shimmer effect on update */
.qr-regenerated {
    position: relative;
    overflow: hidden;
}

.qr-regenerated::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 0.7s cubic-bezier(.4, 0, .2, 1);
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Animated download options */
#downloadOptions {
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s;
}

#downloadOptions.visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0s;
}

/* Custom color swatch for color pickers */
#foregroundColorSwatch,
#backgroundColorSwatch {
    z-index: 1;
}

#foregroundColor,
#backgroundColor {
    z-index: 2;
}