:root {
    --primary-color: #00f2fe; /* Verde-água/Ciano vibrante */
    --secondary-color: #ff007f; /* Rosa/Magenta */
    --dark-bg: #0d1117;
    --card-bg: rgba(22, 27, 34, 0.85);
    --text-color: #c9d1d9;
    --text-muted: #8b949e;
}

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

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px 15px;
    box-sizing: border-box;
}

.container {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 100%;
    max-width: 480px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    visibility: hidden;
}

.logo-container { margin-bottom: 25px; }
.logo {
    max-width: 350px; /* LOGO AUMENTADA */
    height: auto;
}
.section { margin-bottom: 25px; }

.settings-section {
    width: 100%;
    max-width: 250px;
    margin: 25px auto 20px auto; /* Espaçamento ajustado para a nova posição */
    text-align: left;
}
.settings-section label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

h2, h4 {
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}
h4 { color: var(--text-muted); }

input, select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #30363d;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    background-color: #0d1117;
    color: var(--text-color);
    box-sizing: border-box;
}

input:focus, select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.3);
    outline: none;
}

button {
    width: 100%;
    padding: 12px 15px;
    border: none;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 0, 127, 0.25);
}

#qrcode-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #30363d;
    display: none;
    flex-direction: column;
    align-items: center;
}
#qrcode {
    padding: 10px;
    background: white;
    border-radius: 8px;
    display: inline-block;
    line-height: 0;
}
#qrcode img, #qrcode canvas { width: 180px !important; height: 180px !important; }

.btn-download {
    width: auto;
    padding: 12px 30px;
    display: none;
}

footer {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    color: var(--text-muted);
    font-size: 14px;
}
footer p { margin: 0; }

@media (max-width: 500px) {
    .container {
        padding: 25px 20px;
    }
    h2 {
        font-size: 1.7rem;
    }
    .settings-section, .section {
        margin-bottom: 20px;
    }
}