:root{
    --main:#cd7f32;
}

/* الأساس */
body{
    margin:0;
    font-family:'Cairo',sans-serif;
    background:#f6f6f6;
}

*{
    box-sizing:border-box;
}

/* التخطيط */
.layout{
    display:flex;
    min-height:100vh;
}

/* 🎨 الثيمات */
.themes{
    width:60px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
    padding-top:20px;
}

.c{
    width:22px;
    height:22px;
    border-radius:50%;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
}

.bronze{background:#cd7f32;}
.maroon{background:#800000;}
.purple{background:#800080;}
.black{background:#111;color:white;}

/* 📦 الكارد */
.card{
    flex:1;
    max-width:420px;
    margin:auto;
    text-align:center;
    padding:20px;
    background:white;
    border:3px solid var(--main);
    border-radius:15px;
    box-shadow:0 0 15px rgba(0,0,0,0.1);
}

/* العنوان */
.title{
    font-size:42px;
    font-weight:700;
    color:var(--main);
}

.subtitle{
    color:#666;
}

/* الحقول */
input,select{
    width:100%;
    padding:14px;
    margin:6px 0;
    border-radius:15px;
    border:1px solid #ddd;
    transition:0.2s;
}

input:focus,select:focus{
    outline:none;
    background:var(--main);
    color:white;
}

/* الأزرار */
button{
    width:100%;
    padding:12px;
    margin-top:8px;
    border:none;
    border-radius:12px;
    background:var(--main);
    color:white;
    cursor:pointer;
    transition:0.2s;
}

button:hover{
    opacity:0.9;
}

/* 🎯 النتيجة */
#resultBox{
    display:none;
    position:fixed;

    top:50%;
    left:50%;
    transform:translate(-50%,-50%);

    width:90%;
    max-width:420px;

    background:white;
    padding:20px;
    border-radius:15px;

    z-index:20;

    animation:fadeIn 0.4s ease;
}

/* 🌫️ الضباب */
#blurLayer{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;

    backdrop-filter:blur(0px);
    background:rgba(0,0,0,0);

    z-index:15;
    pointer-events:none;

    transition:0.3s;
}

/* ❌ رسائل الخطأ */
.error-msg{
    font-size:12px;
    color:red;
    text-align:right;
    display:none;
}

/* ❌ اهتزاز */
.input-error{
    border:2px solid red !important;
    animation:shake 0.3s;
}

@keyframes shake{
    0%{transform:translateX(0);}
    25%{transform:translateX(-4px);}
    50%{transform:translateX(4px);}
    75%{transform:translateX(-4px);}
    100%{transform:translateX(0);}
}

/* ✨ ظهور النتيجة */
@keyframes fadeIn{
    from{
        opacity:0;
        transform:translate(-50%,-60%);
    }
    to{
        opacity:1;
        transform:translate(-50%,-50%);
    }
}

/* 🌸 الورد */
.petal{
    position:fixed;
    top:-30px;
    pointer-events:none;
    animation:fall linear forwards;
}

/* 🌸 حركة الورد */
@keyframes fall{

    0%{
        transform:translateY(0) rotate(0deg) scale(1);
        opacity:1;
    }

    50%{
        transform:translateY(50vh) rotate(180deg) scale(1.2);
    }

    100%{
        transform:translateY(110vh) rotate(360deg) scale(0.8);
        opacity:0;
    }
}

/* الفوتر */
.footer{
    margin-top:20px;
    font-size:13px;
    color:#777;
}

/* 📱 موبايل */
@media(max-width:600px){

    .layout{
        flex-direction:column;
    }

    .themes{
        flex-direction:row;
        width:100%;
        justify-content:center;
    }

    .card{
        width:100%;
        max-width:100%;
        padding:15px;
    }

    .title{
        font-size:28px;
    }
}