/* ==========================================================
   PALETA DE CORES NEON SOFT & DIVERTIMENTO INFANTIL
   ========================================================== */
:root {
    --bg-color: #F0F4FF;
    --primary-color: #6C5CE7;
    --primary-neon: #8C7AE6;
    --secondary-neon: #00E5FF;
    --neon-pink: #FF3366;
    --neon-green: #00E676;
    --neon-yellow: #FFD200;
    --neon-orange: #FF9F1C;
    --text-dark: #2D3436;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Fredoka', cursive, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: auto;
}

.wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* CABEÇALHO */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 52px;
    height: 52px;
    background: var(--neon-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 0 20px rgba(255, 210, 0, 0.6);
    animation: pulseGlow 2s infinite alternate;
}

.logo-text {
    font-size: 34px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(108, 92, 231, 0.2);
}

.btn-parents {
    background-color: #FFFFFF;
    color: var(--primary-color);
    border: 3px solid var(--primary-color);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 15px rgba(108, 92, 231, 0.15);
}

.btn-parents:hover {
    transform: translateY(-3px) scale(1.03);
    background-color: var(--primary-color);
    color: #FFF;
    box-shadow: 0 10px 25px rgba(108, 92, 231, 0.4);
}

/* HERO & CARDS PRINCIPAIS COM BORDA VIBRANTE */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.neon-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-radius: 36px;
    padding: 30px 35px;
    max-width: 620px;
    width: 100%;
    border: 3.5px solid var(--secondary-neon);
    box-shadow: 
        0 0 18px rgba(0, 229, 255, 0.6),
        0 0 35px rgba(108, 92, 231, 0.3),
        0 15px 35px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    animation: vibrantNeonPulse 3s infinite alternate ease-in-out;
    transition: all 0.3s ease;
}

@keyframes vibrantNeonPulse {
    0% {
        border-color: #00E5FF;
        box-shadow: 0 0 15px rgba(0, 229, 255, 0.5), 0 0 30px rgba(108, 92, 231, 0.25), 0 12px 25px rgba(0, 0, 0, 0.08);
    }
    100% {
        border-color: #8C7AE6;
        box-shadow: 0 0 25px rgba(140, 122, 230, 0.7), 0 0 45px rgba(0, 229, 255, 0.4), 0 18px 35px rgba(0, 0, 0, 0.12);
    }
}

.mascot-welcome-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    text-align: left;
}

.mascot-container {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    filter: drop-shadow(0 6px 12px rgba(255, 159, 28, 0.3));
    cursor: pointer;
    transition: transform 0.2s ease;
}

.mascot-container:hover {
    transform: scale(1.08);
}

.welcome-box {
    flex: 1;
}

.welcome-title {
    font-size: 30px;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
}

.welcome-subtitle {
    font-size: 17px;
    color: #636E72;
    margin-top: 6px;
    line-height: 1.3;
}

/* CARDS DE PERFIL */
.kids-profiles-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.profile-card {
    background: #FFFFFF;
    border-radius: 26px;
    padding: 18px 16px;
    width: 165px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    outline: none;
    text-align: center;
}

.card-pink-neon {
    border: 3.5px solid #FF3366;
    box-shadow: 0 8px 18px rgba(255, 51, 102, 0.2), 0 0 14px rgba(255, 51, 102, 0.3);
}

.card-pink-neon:hover, .card-pink-neon:active {
    transform: translateY(-6px) scale(1.04);
    border-color: var(--neon-pink);
    box-shadow: 0 12px 25px rgba(255, 51, 102, 0.35), 0 0 22px rgba(255, 51, 102, 0.6);
}

.card-green-neon {
    border: 3.5px dashed var(--neon-green);
    box-shadow: 0 8px 18px rgba(0, 230, 118, 0.2), 0 0 14px rgba(0, 230, 118, 0.3);
}

.card-green-neon:hover, .card-green-neon:active {
    transform: translateY(-6px) scale(1.04);
    border-style: solid;
    border-color: var(--neon-green);
    box-shadow: 0 12px 25px rgba(0, 230, 118, 0.35), 0 0 22px rgba(0, 230, 118, 0.6);
}

.avatar-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    transition: transform 0.3s ease;
}

.avatar-pink { background: linear-gradient(135deg, #FF758C, #FF7EB3); box-shadow: 0 5px 12px rgba(255, 117, 140, 0.4); }
.avatar-green { background: linear-gradient(135deg, #00E676, #B9F6CA); box-shadow: 0 5px 12px rgba(0, 230, 118, 0.4); }

.profile-card:hover .avatar-circle { transform: rotate(8deg) scale(1.08); }

.profile-name { font-size: 16px; font-weight: 700; color: var(--text-dark); line-height: 1.2; }
.profile-name small { font-size: 12px; font-weight: 400; color: #636E72; }

/* MODAIS */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    z-index: 100;
    align-items: center; justify-content: center;
    padding: 20px;
}

.neon-card-modal {
    background: #FFFFFF;
    border-radius: 35px;
    padding: 35px;
    max-width: 440px;
    width: 100%;
    position: relative;
    border: 3.5px solid var(--primary-neon);
    box-shadow: 0 0 20px rgba(140, 122, 230, 0.5), 0 0 35px rgba(0, 229, 255, 0.3), 0 20px 40px rgba(0, 0, 0, 0.2);
}

.text-center { text-align: center; }
.modal-title { color: var(--primary-color); font-size: 26px; margin-bottom: 8px; }
.modal-desc { font-size: 15px; color: #636E72; margin-bottom: 22px; }

.close-btn {
    position: absolute; top: 18px; right: 22px;
    font-size: 28px; cursor: pointer; color: #B2BEC3;
    transition: color 0.2s;
}
.close-btn:hover { color: var(--neon-pink); }

.form-group { margin-bottom: 18px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 14px; }
.form-group input {
    width: 100%; padding: 14px 16px;
    border: 2px solid #E2E8F0; border-radius: 16px;
    font-size: 16px; outline: none; transition: all 0.2s ease;
}
.form-group input:focus { border-color: var(--primary-color); box-shadow: 0 0 12px rgba(108, 92, 231, 0.25); }

.btn-purple-neon {
    width: 100%; background: linear-gradient(135deg, var(--primary-color), #8C7AE6);
    color: #FFF; border: none; padding: 16px; border-radius: 18px;
    font-size: 18px; font-weight: 700; cursor: pointer;
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.35); transition: all 0.2s ease;
}
.btn-purple-neon:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(108, 92, 231, 0.5); }

.pin-shapes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pin-btn {
    border: 3.5px solid transparent; font-size: 44px; padding: 18px;
    border-radius: 24px; cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.shape-yellow { background: #FFF9DB; border-color: var(--neon-yellow); }
.shape-pink { background: #FFE3E3; border-color: var(--neon-pink); }
.shape-orange { background: #FFE8CC; border-color: var(--neon-orange); }
.shape-blue { background: #E7F5FF; border-color: var(--secondary-neon); }

.pin-btn:hover, .pin-btn:active { transform: scale(1.1); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }

footer { text-align: center; padding: 20px; font-size: 15px; font-weight: 600; color: #8C7AE6; }

@keyframes pulseGlow {
    from { box-shadow: 0 0 15px rgba(255, 210, 0, 0.4); }
    to { box-shadow: 0 0 30px rgba(255, 210, 0, 0.8); }
}

@media (max-width: 520px) {
    header { padding: 15px 4%; }
    .logo-text { font-size: 26px; }
    .logo-icon { width: 44px; height: 44px; font-size: 24px; }
    .btn-parents { padding: 8px 14px; font-size: 13px; }
    .neon-card { padding: 24px 18px; border-radius: 28px; }
    .mascot-welcome-row { flex-direction: column; text-align: center; gap: 10px; }
    .mascot-container { width: 100px; height: 100px; }
    .welcome-title { font-size: 24px; }
    .welcome-subtitle { font-size: 15px; }
    .kids-profiles-grid { gap: 12px; }
    .profile-card { width: 138px; padding: 16px 10px; }
    .avatar-circle { width: 60px; height: 60px; font-size: 30px; }
    .profile-name { font-size: 14px; }
}