/* --- style.css (نسخة متوافقة بدون CSS vars/min()) --- */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:radial-gradient(80% 60% at 50% -10%, #1a2542 0%, #0b1020 60%);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

/* الحاوية */
.wrap{
  min-height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:28px;
}

/* البطاقة */
.card{
  width:100%;
  max-width:640px;          /* بدل min(640px, 92vw) */
  background:#121a2b;
  border:1px solid #1f2a44;
  border-radius:20px;
  padding:22px 18px;
  color:#e8efff;
  box-shadow:0 20px 60px rgba(0,0,0,.25);
}

/* العنوان */
.head h1{margin:0 0 6px; font-size:22px}
.sub{margin:0 0 14px; color:#97a0b3}

/* النموذج */
.form label{display:block; margin:.25rem 0 .5rem; color:#c8d3f0; font-weight:600}
.controls{display:flex; gap:10px}
input{
  flex:1;
  padding:14px 14px;
  border:1px solid #1f2a44;
  border-radius:14px;
  background:#0e1628;
  color:#e8efff;
  font-size:16px;
  outline:none;
}
input:focus{border-color:#2e89ff}
button{
  padding:14px 18px; border:0; border-radius:14px;
  background:linear-gradient(180deg,#4db4ff,#1d8bff);
  color:#fff; font-weight:700; cursor:pointer;
}
button[disabled]{opacity:.6; cursor:not-allowed}

/* نصوص مساعدة ونتائج */
.hint{display:block; color:#97a0b3; margin-top:8px}
.result{margin-top:16px; min-height:28px; font-weight:700}
.ok{color:#22c55e} .no{color:#ef4444} .warn{color:#facc15}

/* جدول التفاصيل */
.details{margin-top:12px}
.table{
  width:100%; border-collapse:collapse; margin-top:10px; font-size:15px;
  overflow:hidden; border-radius:12px; border:1px solid #1f2a44;
}
.table th,.table td{padding:10px 12px; border-bottom:1px solid #1f2a44}
.table th{width:160px; color:#cfe1ff; text-align:right; background:#0f1930}
.table tr:last-child td{border-bottom:0}

/* فوتر */
.foot{margin-top:18px; color:#8ea0c7; font-size:13px}

/* موبايل */
@media (max-width:520px){
  .controls{flex-direction:column}
  button{width:100%}
}
