/* عناصر الأدوات وصفحة «حسابي» — تكمل site.css بالرموز نفسها */
.app { padding-block: 40px 72px; }
.app-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.app-head img { width: 52px; height: 52px; }
.app-head h1 { font-size: 30px; }
.app-head .crumb { font-size: 13px; color: var(--slate); text-decoration: none; display: block; }
.app-head .spacer { margin-inline-start: auto; display: flex; gap: 10px; align-items: center; }
.balance-chip { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--ink); text-decoration: none; }
.balance-chip b { font-variant-numeric: tabular-nums; }

.card-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin-bottom: 18px; }
.card-box h2 { font-size: 20px; margin-bottom: 10px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.stack { display: grid; gap: 12px; }
.inline { display: flex; gap: 8px; flex-wrap: wrap; }
.inline input { flex: 1; min-width: 180px; }
.app input, .app select, .login input { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); color: var(--ink); width: 100%; }
.app label, .login label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.login { max-width: 520px; margin: 24px auto; }
.login .note { background: var(--sand); padding: 10px 12px; border-radius: var(--r-sm); font-size: 14px; }
.linklike { background: none; border: none; color: var(--teal); font: inherit; cursor: pointer; justify-self: start; padding: 0; text-decoration: underline; }
.big { font-size: 30px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* منطقة الرفع */
.drop { border: 2px dashed #b9c4cc; border-radius: var(--r); background: var(--card); padding: 28px; display: grid; gap: 14px; justify-items: center; text-align: center; margin-bottom: 18px; }
.drop.over { border-color: var(--teal); background: #eef6f5; }
.drop .actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; width: 100%; }
.drop form { flex: 1; max-width: 520px; }
.up { width: 100%; max-width: 560px; text-align: start; font-size: 14px; }
.bar { height: 6px; background: var(--sand); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.bar > i { display: block; height: 100%; width: 0; background: var(--teal); transition: width .3s; }

/* الإعدادات المختصرة */
details.settings { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 20px; margin-bottom: 18px; }
details.settings summary { cursor: pointer; font-weight: 700; }
details.settings summary span { font-weight: 400; color: var(--slate); margin-inline-start: 8px; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 14px; }
fieldset { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; margin: 0; }
legend { font-weight: 700; padding: 0 6px; }
.opt { display: flex !important; align-items: center; gap: 8px; font-weight: 400 !important; padding: 3px 0; }
.opt input { width: auto; }

/* الجداول */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: start; padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 13px; color: var(--slate); font-weight: 700; }
.table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sub { font-size: 13px; color: var(--slate); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; background: var(--sand); color: var(--slate); white-space: nowrap; }
.pill.done { background: #e3f1ef; color: var(--teal); }
.pill.processing, .pill.probing, .pill.queued { background: #eef1f4; color: var(--ink); }
.pill.failed, .pill.rejected { background: #f6e4e1; color: var(--bad); }
.empty { text-align: center; padding: 32px; color: var(--slate); }

.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.plan { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.plan > button { margin-top: auto; }
.plan .price { font-size: 20px; font-weight: 700; }
.plan .bonus { color: var(--teal); font-size: 13px; }

.toast { position: fixed; bottom: 20px; inset-inline: 0; margin-inline: auto; width: fit-content; max-width: 90vw; background: var(--ink); color: var(--white); padding: 10px 18px; border-radius: var(--r-sm); z-index: 30; }
@media (max-width: 640px) { .table .hide-m { display: none; } .app-head .spacer { margin-inline-start: 0; width: 100%; } }
[hidden] { display: none !important; }
@media (max-width: 640px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .table td { border: none; padding: 3px 0; }
  .table td.num { text-align: start !important; }
  .drop { padding: 20px 16px; }
  .drop .actions { flex-direction: column; align-items: stretch; }
  .drop form { max-width: none; }
}

/* تعريف مِداد قبل الدخول */
.intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; margin-top: 8px; }
.intro h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.25; margin-bottom: 14px; }
.intro .lead { font-size: 18px; color: var(--slate); margin-bottom: 22px; }
.intro-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 4px; }
.intro-list li { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line); }
.intro-list b { font-family: "TheSans Bold", var(--font); font-size: 18px; }
.intro-list span { color: var(--slate); }
.intro .free { color: var(--teal); font-weight: 700; }
.intro .login { margin: 0; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }
