:root{
    --adp-orange:#fc9012;
    --adp-cyan:#00bddd;
    --adp-ink:#172033;
    --adp-muted:#64748b;
    --adp-line:#dce7ee;
    --adp-soft:#f5f9fc;
    --adp-warm:#fff8ef;
    --adp-white:#ffffff;
}

html[lang="ar"],
html[lang="ar"] body,
html[lang="ar"] button,
html[lang="ar"] input,
html[lang="ar"] textarea,
html[lang="ar"] select{
    font-family:"Cairo", sans-serif;
}

html[lang="en"],
html[lang="en"] body,
html[lang="en"] button,
html[lang="en"] input,
html[lang="en"] textarea,
html[lang="en"] select{
    font-family:"Montserrat", sans-serif;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6,
html[lang="ar"] .elementor-heading-title{
    font-family:"Cairo", sans-serif !important;
    font-weight:700 !important;
}

.adp-dt{
    width:100%;
    direction:rtl;
    color:var(--adp-ink);
}

.adp-dt,
.adp-dt *{
    box-sizing:border-box;
}

.adp-dt-hero{
    margin:0 0 24px;
    padding:30px;
    border:1px solid var(--adp-line);
    border-radius:24px;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(0,189,221,.11),
            transparent 32%
        ),
        radial-gradient(
            circle at 10% 20%,
            rgba(252,144,18,.10),
            transparent 30%
        ),
        var(--adp-white);
}

.adp-dt-badge{
    display:inline-flex;
    margin:0 0 12px;
    padding:7px 13px;
    border:1px solid rgba(0,189,221,.22);
    border-radius:999px;
    background:rgba(0,189,221,.07);
    color:#087d94;
    font-size:13px;
    font-weight:700;
}

.adp-dt-hero h1{
    margin:0 0 12px;
    color:var(--adp-ink);
    font-size:clamp(28px,4vw,42px);
    font-weight:700;
    line-height:1.35;
}

.adp-dt-hero p{
    max-width:760px;
    margin:0;
    color:var(--adp-muted);
    font-size:16px;
    line-height:1.9;
}

.adp-dt-card{
    padding:26px;
    border:1px solid var(--adp-line);
    border-radius:24px;
    background:var(--adp-white);
    box-shadow:
        0 18px 45px
        rgba(23,32,51,.07);
}

.adp-dt-grid{
    display:grid;
    grid-template-columns:
        repeat(2,minmax(0,1fr));
    gap:18px;
}

.adp-dt-field{
    display:block;
    margin:0 0 16px;
}

.adp-dt-field > span{
    display:block;
    margin:0 0 8px;
    color:var(--adp-ink);
    font-size:14px;
    font-weight:700;
}

.adp-dt input,
.adp-dt textarea{
    display:block;
    width:100%;
    border:1px solid var(--adp-line);
    border-radius:16px;
    outline:0;
    background:var(--adp-white);
    color:var(--adp-ink);
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.adp-dt input{
    min-height:52px;
    padding:12px 15px;
}

.adp-dt textarea{
    min-height:260px;
    resize:vertical;
    padding:16px;
    line-height:1.75;
}

.adp-dt input:focus,
.adp-dt textarea:focus{
    border-color:var(--adp-cyan);
    box-shadow:
        0 0 0 3px
        rgba(0,189,221,.10);
}

.adp-dt input[dir="ltr"],
.adp-dt textarea[dir="ltr"]{
    text-align:left;
}

.adp-dt textarea[dir="ltr"]{
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
    font-size:13px;
}

.adp-dt-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:8px 0 0;
}

.adp-dt-actions button{
    min-height:45px;
    padding:10px 18px;
    border:0;
    border-radius:13px;
    background:var(--adp-orange);
    color:#fff;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.adp-dt-actions button:hover{
    transform:translateY(-1px);
    box-shadow:
        0 9px 22px
        rgba(23,32,51,.12);
}

.adp-dt-actions button:disabled{
    opacity:.55;
    cursor:not-allowed;
    transform:none;
}

.adp-dt-actions button.secondary{
    background:var(--adp-ink);
}

.adp-dt-actions button.cyan{
    background:var(--adp-cyan);
}

.adp-dt-actions button.light{
    border:1px solid var(--adp-line);
    background:var(--adp-soft);
    color:var(--adp-ink);
}

.adp-dt-actions button.danger{
    border:1px solid #f0d7d7;
    background:#fff;
    color:#b42318;
}

.adp-dt-meta{
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    gap:10px;
    margin:18px 0 0;
    padding:13px 15px;
    border-radius:14px;
    background:var(--adp-soft);
    color:var(--adp-muted);
    font-size:13px;
}

.adp-dt-note{
    margin:18px 0 0;
    padding:15px 17px;
    border:1px solid #ffe1bb;
    border-radius:14px;
    background:var(--adp-warm);
    color:#875113;
    line-height:1.8;
}

.adp-dt-result{
    margin:18px 0 0;
    padding:18px;
    border:1px solid var(--adp-line);
    border-radius:16px;
    background:var(--adp-soft);
    color:var(--adp-ink);
    line-height:1.9;
}

.adp-dt-result strong{
    color:var(--adp-ink);
}

.adp-dt-result code{
    display:block;
    margin:10px 0 0;
    padding:12px;
    overflow:auto;
    border-radius:11px;
    background:#fff;
    color:var(--adp-ink);
    direction:ltr;
    text-align:left;
    white-space:pre-wrap;
    word-break:break-all;
}

@media(max-width:760px){
    .adp-dt-grid{
        grid-template-columns:1fr;
    }

    .adp-dt-hero,
    .adp-dt-card{
        padding:20px;
        border-radius:19px;
    }

    .adp-dt-actions{
        display:grid;
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .adp-dt-actions button{
        width:100%;
    }
}

@media(max-width:480px){
    .adp-dt-actions{
        grid-template-columns:1fr;
    }

    .adp-dt textarea{
        min-height:220px;
    }
}
