:root {
    --primary: #007bff;
    --whatsapp: #25D366;
    --bg: #0f172a;
    --card-bg: #1e293b;
    --text: #f8fafc;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', Tahoma, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    width: 90%;
    max-width: 450px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.title {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

#qr-input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 2px solid #334155;
    background: #0f172a;
    color: white;
    box-sizing: border-box;
    margin-bottom: 1rem;
    transition: 0.3s;
}

#qr-input:focus {
    border-color: var(--primary);
    outline: none;
}

.controls {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
    background: #334155;
    padding: 10px;
    border-radius: 10px;
}

.control-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.upload-section { margin: 1.5rem 0; }

.btn-upload {
    background: #334155;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-upload:hover { background: #475569; }

#qrcode-container {
    background: white;
    padding: 15px;
    border-radius: 10px;
    display: inline-block;
    margin: 1.5rem 0;
}

.btn-download {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.buy-section a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--whatsapp) !important;
    padding: 12px !important;
    border-radius: 12px !important;
    transition: 0.3s;
    animation: pulse 2s infinite;
}

.buy-section a:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

input[type="file"] { display: none; }