/* --- RODIČOVSKÁ BRÁNA & PIN MODÁL --- */
#parental-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 5200;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.parental-dialog {
    position: relative;
    background: linear-gradient(135deg, #24243a, #1a1a2a);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 26px;
    padding: 26px 20px 20px;
    max-width: 330px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
    text-align: center;
    color: #ffffff;
    animation: confirmPopIn 0.2s ease-out;
    box-sizing: border-box;
}

.parental-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #aaa;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.1s;
}

.parental-close:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.parental-close:active {
    transform: scale(0.92);
}

.parental-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0, 210, 255, 0.12);
    border: 1px solid rgba(0, 210, 255, 0.3);
    color: #00d2ff;
    margin-bottom: 10px;
}

.parental-title {
    margin: 0 0 6px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.parental-subtitle {
    margin: 0 0 16px 0;
    font-size: 0.88rem;
    color: #a0a0ba;
    line-height: 1.4;
    min-height: 18px;
    transition: color 0.2s;
}

.parental-subtitle.error {
    color: #ef4444;
}

/* Dots */
.parental-dots {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 6px 0 20px;
}

.parental-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    transition: all 0.15s ease-out;
}

.parental-dot.filled {
    background: #00d2ff;
    border-color: #00d2ff;
    transform: scale(1.15);
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.55);
}

.parental-dot.error {
    background: #ef4444;
    border-color: #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.55);
}

.parental-dot.success {
    background: #10b981;
    border-color: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.55);
}

/* Math box */
.parental-math-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 4px 0 18px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.parental-math-question {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Nunito', sans-serif;
    letter-spacing: 0.5px;
}

.parental-math-question.verbal {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.35;
}

.parental-math-answer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 36px;
    border-bottom: 3px solid #00d2ff;
    font-size: 1.7rem;
    font-weight: 700;
    color: #00d2ff;
    font-family: 'Nunito', sans-serif;
    transition: all 0.2s;
}

.parental-math-answer.error {
    border-color: #ef4444;
    color: #ef4444;
}

.parental-math-answer.success {
    border-color: #10b981;
    color: #10b981;
}

/* Keypad */
.parental-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 240px;
    margin: 0 auto;
}

.keypad-key {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 1.55rem;
    font-weight: 600;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.12s, transform 0.08s, border-color 0.12s;
}

.keypad-key:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.keypad-key:active {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(0.93);
}

.keypad-placeholder {
    width: 64px;
    height: 64px;
}

.keypad-backspace {
    background: transparent;
    border-color: transparent;
    color: #a0a0ba;
}

.keypad-backspace:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: transparent;
    color: #ffffff;
}

.keypad-backspace:active {
    transform: scale(0.93);
}

.parental-footer {
    margin-top: 14px;
    text-align: center;
}

.parental-text-link {
    background: none;
    border: none;
    color: #8c8ca5;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}

.parental-text-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

/* Shake animation */
@keyframes parentalShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-9px); }
    40%, 80% { transform: translateX(9px); }
}

.shake {
    animation: parentalShake 0.4s ease-in-out;
}
