.converter{
    width:90%;
    max-width:700px;
    margin:60px auto;
    text-align:center;
}

.converter h1{
    font-size:42px;
    margin-bottom:10px;
}

.converter p{
    color:#bdbdbd;
    margin-bottom:25px;
}

#dropZone{
    border:2px dashed #4f46e5;
    border-radius:20px;
    padding:45px 25px;
    background:rgba(255,255,255,.05);
    transition:.3s;
    cursor:pointer;
}

#dropZone:hover{
    background:rgba(255,255,255,.08);
}

.uploadBtn{
    display:inline-block;
    padding:16px 35px;
    background:linear-gradient(135deg,#2563eb,#7c3aed);
    border-radius:14px;
    cursor:pointer;
    font-weight:600;
    margin-bottom:20px;
}

#fileName{
    color:#ddd;
    word-break:break-word;
}

.quality{
    margin-top:30px;
}

.quality label{
    display:block;
    margin-bottom:10px;
    font-weight:600;
}

select{
    width:220px;
    padding:12px;
    border:none;
    border-radius:12px;
    font-size:16px;
}

.progress{
    width:100%;
    height:12px;
    background:#222;
    border-radius:50px;
    overflow:hidden;
    margin:30px 0;
}

#progressBar{
    width:0%;
    height:100%;
    background:linear-gradient(90deg,#22c55e,#3b82f6);
    transition:.3s;
}

button{
    width:100%;
    padding:16px;
    margin-top:15px;
    border:none;
    border-radius:14px;
    font-size:18px;
    font-weight:600;
    cursor:pointer;
}

#convertBtn{
    background:linear-gradient(135deg,#06b6d4,#2563eb);
    color:white;
}

#resetBtn{
    background:#333;
    color:white;
}

button:hover{
    opacity:.9;
}

#status{
    margin-top:20px;
    font-weight:600;
}

@media(max-width:768px){

.converter h1{
    font-size:32px;
}

select{
    width:100%;
}

}





#preview{

width:100%;

margin-top:25px;

border-radius:15px;

display:none;

background:black;

}

#videoInfo{

margin-top:25px;

padding:20px;

background:rgba(255,255,255,.06);

border-radius:15px;

text-align:left;

}

#videoInfo p{

margin:10px 0;

color:#ddd;

}

#videoInfo span{

color:white;

font-weight:600;

}











#loadingOverlay{

position:fixed;

top:0;
left:0;

width:100%;
height:100%;

background:rgba(8,8,12,.95);

display:none;

justify-content:center;
align-items:center;

flex-direction:column;

z-index:9999;

}

.loader{

width:80px;
height:80px;

border:8px solid rgba(255,255,255,.15);

border-top:8px solid #3b82f6;

border-radius:50%;

animation:spin 1s linear infinite;

margin-bottom:25px;

}

@keyframes spin{

from{

transform:rotate(0deg);

}

to{

transform:rotate(360deg);

}

}

#loadingOverlay h2{

margin-bottom:12px;

}

#loadingOverlay p{

color:#bdbdbd;

}

#downloadBtn{

display:none;

margin-top:20px;

padding:16px;

text-decoration:none;

background:#16a34a;

color:white;

font-weight:600;

border-radius:14px;

transition:.3s;

}

#downloadBtn:hover{

background:#15803d;

}


#toast{

position:fixed;

bottom:30px;

left:50%;

transform:translateX(-50%);

background:#16a34a;

color:white;

padding:15px 22px;

border-radius:12px;

font-weight:600;

opacity:0;

visibility:hidden;

transition:.35s;

z-index:99999;

box-shadow:0 8px 25px rgba(0,0,0,.35);

}

#toast.show{

opacity:1;

visibility:visible;

}



/* ============================= */
/* CONVERT PAGE INFORMATION       */
/* ============================= */

.convert-info {
    max-width: 1100px;
    margin: 90px auto 0;
    padding: 0 25px 80px;
}

.info-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 45px;
}

.info-heading span,
.how-text span,
.converter-about span,
.faq-heading span {
    color: #8b7cff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
}

.info-heading h2,
.how-text h2,
.converter-about h2,
.faq-heading h2 {
    font-size: 32px;
    margin: 10px 0 15px;
}

.info-heading p,
.how-text p,
.converter-about p {
    color: #aaa;
    line-height: 1.8;
}


/* FEATURES */

.convert-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 100px;
}

.info-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139,124,255,0.5);
}

.info-icon {
    font-size: 28px;
    margin-bottom: 15px;
}

.info-card h3 {
    margin-bottom: 10px;
}

.info-card p {
    color: #aaa;
    line-height: 1.7;
}





/* ============================= */
/* HOW IT WORKS                  */
/* ============================= */

.how-it-works {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 100px;
}

.how-text {
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
}

.how-text h2 {
    margin: 10px 0 15px;
}

.how-text p {
    margin: 0;
}


/* STEPS */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.step {
    position: relative;
    min-height: 150px;
    padding: 30px 25px;
    border-radius: 20px;

    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);

    text-align: center;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    transition: 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    border-color: rgba(139,124,255,0.5);
}


/* NUMBER — دائمًا ظاهر أعلى اليمين */

.step-number {
    position: absolute;
    top: 14px;
    right: 18px;

    min-width: auto;
    width: auto;
    height: auto;

    padding: 0;

    background: none;
    border-radius: 0;

    font-size: 18px;
    font-weight: 700;

    color: rgba(255,255,255,0.45);

    display: block;

    opacity: 1;
    visibility: visible;

    z-index: 2;
}


/* STEP TEXT */

.step h3 {
    margin: 0 0 10px;
    font-size: 19px;
}

.step p {
    margin: 0;
    color: #999;
    line-height: 1.7;
}



/* ABOUT */

.converter-about {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 100px;
    padding: 45px;
    border-radius: 24px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
}

.converter-about p {
    margin: 0;
}


/* FAQ */

.convert-faq {
    max-width: 850px;
    margin: 0 auto;
}

.faq-heading {
    text-align: center;
    margin-bottom: 35px;
}

.convert-faq details {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 15px;
    margin-bottom: 12px;
    padding: 20px 24px;
}

.convert-faq summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.convert-faq summary::-webkit-details-marker {
    display: none;
}

.convert-faq summary::after {
    content: "+";
    float: right;
    color: #8b7cff;
    font-size: 20px;
}

.convert-faq details[open] summary::after {
    content: "−";
}

.convert-faq details p {
    color: #aaa;
    line-height: 1.7;
    margin: 15px 0 0;
}


/* MOBILE */

@media (max-width: 900px) {

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .convert-features {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {

    .info-heading h2,
    .how-text h2,
    .converter-about h2,
    .faq-heading h2 {
        font-size: 26px;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .step {
        padding: 22px;
    }

    .converter-about {
        padding: 30px 20px;
    }

}

/* ============================= */
/* ABOUT HOME                    */
/* ============================= */

.about-home {
    max-width: 1000px;
    margin: 0 auto 100px;
    padding: 0 25px;
}

.about-home-card {
    max-width: 850px;
    margin: 0 auto;
    padding: 50px 55px;
    text-align: center;

    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;

    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.about-home-card span {
    color: #8b7cff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
}

.about-home-card h2 {
    font-size: 32px;
    margin: 12px 0 18px;
}

.about-home-card p {
    max-width: 720px;
    margin: 0 auto 25px;
    color: #aaa;
    line-height: 1.8;
}

.about-home-btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 12px;
    background: linear-gradient(135deg, #168cff, #765cff);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.about-home-btn:hover {
    transform: translateY(-2px);
}