@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@500;700&display=swap');

:root{

    --oedc-primary:#29486B;
    --oedc-accent:#FDBD1E;
    --oedc-accent-hover:#FDBD1E;

    --oedc-success:#16a34a;
    --oedc-danger:#ef4444;

    --oedc-white:#ffffff;
    --oedc-muted:#dbe7f5;

}

/* Wrapper */

.oedc-checker{

    width:100%;
    direction:rtl;
    font-family:'Cairo',sans-serif;

}

/* Main Card */

.oedc-card{

    background:#29486B;
    border-radius:24px;
    padding:40px;
    box-shadow:0 20px 45px rgba(0,0,0,.18);

}

/* Header */

.oedc-header{

    text-align:center;
    margin-bottom:32px;

}

.oedc-title{

    color:#fff;
    font-size:34px;
    font-weight:700;
    line-height:1.5;
    margin:0 0 10px;

}

.oedc-description{

    color:var(--oedc-muted);
    font-size:16px;
    font-weight:500;
    margin:0;

}

/* Search Box */

.oedc-input-wrapper{

    display:flex;
    gap:14px;
    width:100%;

}

.oedc-domain-input{

    flex:1;
    height:62px;
    border-radius:14px;
    border:none;
    background:#fff;
    padding:0 22px;
    font-family:'Cairo';
    font-size:17px;
    font-weight:500;
    color:#222;
    outline:none;

}

.oedc-domain-input::placeholder{

    color:#888;

}

.oedc-domain-input:focus{

    box-shadow:0 0 0 4px rgba(253,189,30,.25);

}

/* Main Button */

.oedc-submit{

    height:62px;
    padding:0 40px;
    border:none;
    border-radius:15px;
    background:#FDBD1E;
    color:#0B213F;
    font-family:'Cairo';
    font-size:17px;
    font-weight:700;
    cursor:pointer;
    transition:.3s;

}

.oedc-submit:hover{

    background:#FDBD1E;
    transform:translateY(-2px);

}

/* Results */

.oedc-results{

    margin-top:35px;

}

/* Result Card */

.oedc-result{

    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;
    gap:20px;
    background:rgba(255,255,255,.07);
    border:1px solid rgba(255,255,255,.12);
    border-radius:16px;
    padding:18px 22px;
    margin-bottom:14px;
    transition:.25s;

}

.oedc-result:hover{

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

}

/* Domain */

.oedc-domain{

    color:#fff;
    font-size:19px;
    font-weight:700;
    direction:ltr;
    text-align:left;

}

/* يمين الكارت */

.oedc-actions{

    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:12px;
    min-width:240px;

}

/* Status */

.oedc-status{

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

}

/* Badges */

.oedc-badge{

    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:42px;
    min-width:110px;
    padding:0 24px;
    border-radius:12px;
    font-size:14px;
    font-weight:700;
    white-space:nowrap;
    box-sizing:border-box;

}

/* Available */

.oedc-available{


    color:#6dff9d;

}

/* Reserved */

.oedc-unavailable{

    background:rgba(239,68,68,.18);
    color:#ff8d8d;

}

/* Error */

.oedc-error{

    background:rgba(253,189,30,.18);
    color:#ffd966;

}

/* Button */

.oedc-btn{

    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:42px;
    min-width:110px;
    padding:0 24px;
    border-radius:12px;
    background:#FDBD1E;
    color:#111;
    text-decoration:none;
    font-family:'Cairo';
    font-size:14px;
    font-weight:700;
    transition:.3s;
    box-shadow:0 6px 15px rgba(253,189,30,.25);
    box-sizing:border-box;

}

.oedc-btn:hover{

    background:#FDBD1E;
    color:#111;
    transform:translateY(-2px);

}

/* زر محجوز */

.oedc-btn-disabled{

    background:rgba(239,68,68,.18);
    color:#ff8d8d;
    box-shadow:none;
    cursor:default;

}

.oedc-btn-disabled:hover{

    background:rgba(239,68,68,.18);
    color:#ff8d8d;
    transform:none;

}

/* Loading */

.oedc-spinner{

    width:18px;
    height:18px;
    border:3px solid rgba(255,255,255,.25);
    border-top-color:#FDBD1E;
    border-radius:50%;
    animation:oedc-spin .7s linear infinite;

}

@keyframes oedc-spin{

    from{
        transform:rotate(0deg);
    }

    to{
        transform:rotate(360deg);
    }

}

/* Mobile */

@media(max-width:768px){

    .oedc-card{

        padding:25px 18px;

    }

    .oedc-title{

        font-size:26px;

    }

    .oedc-input-wrapper{

        flex-direction:column;

    }

    .oedc-submit{

        width:100%;

    }

    .oedc-result{

        grid-template-columns:1fr;
        text-align:center;
        gap:14px;

    }

    .oedc-domain{

        text-align:center;

    }

    .oedc-actions{

        width:100%;
        min-width:0;
        flex-direction:column;
        align-items:stretch;

    }

    .oedc-status{

        justify-content:center;

    }

    .oedc-btn,
    .oedc-btn-disabled,
    .oedc-badge{

        width:100%;

    }

}