/* =================================================================
   1. NUMEROLOGY LEFT SIDE WIDGET
   ================================================================= */
#numerology-app-wrapper {
    position: fixed;
    left: 4%;
    top: 52%;
    transform: translateY(-50%);
    width: 380px;
    height: 620px;
    z-index: 150;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

#numerology-3d-canvas {
    width: 440px;
    height: 380px;
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 15;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 20px rgba(6, 182, 212, 0.4));
}

.num-glow-btn {
    position: absolute;
    top: 490px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(15, 15, 30, 0.95), rgba(5, 5, 15, 0.95));
    border: 2px solid #06b6d4;
    color: #06b6d4;
    padding: 0.85rem 2.2rem;
    border-radius: 30px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4), inset 0 0 12px rgba(6, 182, 212, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    z-index: 30;
    white-space: nowrap;
}

.num-glow-btn:hover {
    background: #06b6d4;
    color: #000;
    box-shadow: 0 0 35px #06b6d4;
    transform: translateX(-50%) scale(1.08);
}

/* =================================================================
   2. INPUT FORM MODAL (POPUP)
   ================================================================= */
.num-glass-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 450px;
    background: linear-gradient(135deg, rgba(12, 12, 25, 0.98), rgba(4, 4, 12, 0.99));
    border: 1.5px solid rgba(6, 182, 212, 0.5);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.9), inset 0 0 15px rgba(6, 182, 212, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 99999;
}

.num-glass-panel.active {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.num-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(6, 182, 212, 0.3);
}

.num-panel-header h3 {
    font-family: 'Orbitron', sans-serif;
    color: #06b6d4;
    font-size: 1.1rem;
    margin: 0;
}

.num-close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
}

.num-close-btn:hover {
    color: #f43f5e;
}

.num-panel-body {
    padding: 1.5rem;
}

/* =================================================================
   3. RESULT REPORT MODAL
   ================================================================= */
#numerology-report-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    z-index: 999999;
    display: none;
    justify-content: center;
    align-items: center;
}

.num-report-card {
    background: linear-gradient(135deg, rgba(12, 12, 25, 0.99), rgba(4, 4, 12, 1));
    border: 2px solid #06b6d4;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    box-shadow: 0 0 50px rgba(6, 182, 212, 0.35);
}

/* =================================================================
   4. INPUT WITH KEYBOARD ACTION BUTTONS
   ================================================================= */
.input-with-btn {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-btn input {
    padding-right: 45px !important;
}

.keyboard-toggle-btn {
    position: absolute;
    right: 8px;
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: #06b6d4;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.keyboard-toggle-btn:hover {
    background: #06b6d4;
    color: #000;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
}

.sinhala-kbd-btn {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.4);
    color: #f59e0b;
}

.sinhala-kbd-btn:hover {
    background: #f59e0b;
    color: #000;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

/* =================================================================
   5. MOBILE RESPONSIVE FIX (Does NOT affect PC)
   ================================================================= */
@media (max-width: 768px) {
    #numerology-app-wrapper {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        height: 500px !important; 
        margin: 40px auto !important;
        z-index: 20 !important;
    }
    #numerology-3d-canvas {
        position: absolute !important;
        top: 20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 320px !important;
        height: 320px !important;
    }
    .num-glow-btn {
        position: absolute !important;
        top: 380px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    .num-glow-btn:hover {
        transform: translateX(-50%) scale(1.05) !important;
    }
}
