@font-face {
    font-family: "IRANSansX";
    src: url("../fonts/IRANSansXFaNum-MediumD4.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
    min-height: 100vh;
    background: #f5f7fb;
    color: #1f2937;
    font-family: "IRANSansX", Vazirmatn, Tahoma, sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 12px;
}

.qu {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 26px 18px;
    text-align: center;
}

.qu-brand { font-weight: 700; color: #2563eb; font-size: 17px; margin-bottom: 4px; }
.qu-hint { font-size: 13px; color: #6b7280; margin-bottom: 14px; }
.qu-hint.ok { color: #047857; }

.qu-otp { display: flex; gap: 6px; justify-content: center; margin: 6px 0 12px; }
.qu-otp input {
    width: 40px;
    height: 48px;
    padding: 0;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #1f2937;
    text-align: center;
    font: 700 22px Consolas, monospace;
    outline: none;
}
.qu-otp input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px #bfdbfe; }
.qu-otp.accepted input { border-color: #10b981; background: #ecfdf5; }
.qu-otp.busy input { opacity: .6; }

.qu-msg { color: #b91c1c; font-size: 13px; margin: 0 0 12px; }
.qu-msg[hidden] { display: none; }
.qu-msg-block {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 14px;
    margin-top: 14px;
    font-size: 14px;
}

.qu-drop {
    border: 2px dashed #93c5fd;
    border-radius: 12px;
    background: #fff;
    padding: 26px 10px;
    color: #2563eb;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}
.qu-drop:hover, .qu-drop:focus, .qu-drop.over { background: #eff6ff; border-color: #2563eb; outline: none; }
.qu-drop-icon { font-size: 28px; }

.qu-file {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    text-align: right;
    font-size: 13px;
    margin-top: 10px;
}
.qu-name {
    direction: ltr;
    unicode-bidi: plaintext;
    text-align: right;
    font-family: Consolas, monospace;
    font-size: 12px;
    overflow-wrap: anywhere;
}
.qu-prog { height: 8px; background: #e5e7eb; border-radius: 4px; margin: 8px 0 4px; overflow: hidden; }
.qu-prog i { display: block; height: 100%; width: 0; background: #2563eb; transition: width .2s linear; }
.qu-meta { display: flex; justify-content: space-between; gap: 8px; color: #6b7280; font-size: 12px; }

.qu-file.done { background: #ecfdf5; border-color: #a7f3d0; color: #047857; font-size: 14px; }
.qu-file.done .qu-meta { color: #065f46; justify-content: flex-start; }
.qu-file.failed { background: #fef2f2; border-color: #fecaca; }
.qu-file.failed .qu-meta { color: #b91c1c; }
.qu-file.waiting .qu-prog { display: none; }
.qu-retry {
    border: 0;
    background: none;
    color: #2563eb;
    font: inherit;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.qu-more { font-size: 12px; color: #6b7280; margin-top: 10px; }

.qu-title { font-weight: 700; margin-bottom: 4px; }
