/* CodeSerial — the TablePro-window look: calm background, orange icon, a column of pill buttons. */
:root {
  --or: #EF962B; --or-dark: #D97F14; --or-soft: #FDF1E2; --or-line: #E9BE84;
  --bg: #F4F3F1; --card: #FFFFFF; --ink: #1D1D1F; --mut: #77736D; --line: #E4E1DC;
  --gray: #E7E6E4; --gray-ink: #2B2B2B; --ok: #2F9E62; --bad: #D6453D; --blue: #2F6FD6;
  --shadow: 0 2px 10px rgba(0, 0, 0, .05);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1C1E; --card: #2A2A2C; --ink: #F2F1EF; --mut: #A6A29B; --line: #3A3A3C;
    --gray: #3A3A3C; --gray-ink: #F2F1EF; --or-soft: #3A2B18; --or-line: #7A5420;
    --shadow: 0 2px 10px rgba(0, 0, 0, .3);
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* flex rules below must never un-hide a section */
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
       line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
.wrap { max-width: 760px; margin: 0 auto; padding: 14px 16px 28px; min-height: 100vh;
        display: flex; flex-direction: column; }

/* the only ad, always in the same place */
.ad { min-height: 90px; margin-bottom: 8px; border-radius: 10px; overflow: hidden; }

.nav { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--mut); padding: 6px 2px; }
.nav .brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; }
.nav .mini { width: 22px; height: 22px; display: inline-block; vertical-align: middle; }
.nav .links { display: flex; gap: 14px; align-items: center; }
.nav .links a { color: var(--mut); }
.inline { display: inline; margin: 0; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--mut); cursor: pointer; }

/* hero column */
.hero { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 22px; }
.hero section { width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: center; }
.logo { margin: 18px 0 10px; filter: drop-shadow(0 6px 14px rgba(235, 140, 31, .28)); }
h1 { font-size: 26px; margin: 4px 0 2px; line-height: 1.4; }
h2 { font-size: 20px; margin: 4px 0 8px; }
.sub { color: var(--mut); font-size: 15px; margin: 0 0 22px; max-width: 420px; }

.drop { width: 100%; border: 1.6px dashed var(--or-line); background: var(--or-soft); border-radius: 14px;
        padding: 18px 14px; margin-bottom: 14px; cursor: pointer; display: flex; flex-direction: column;
        gap: 2px; transition: border-color .15s, transform .15s; }
.drop b { color: var(--or-dark); font-size: 16px; }
.drop span { color: var(--mut); font-size: 13px; }
.drop.over { border-color: var(--or); transform: scale(1.01); }

.btn { width: 100%; height: 46px; border-radius: 23px; border: 0; margin: 0 0 10px; display: flex;
       align-items: center; justify-content: center; font-family: inherit; font-weight: 700; font-size: 16px; line-height: 1;
       cursor: pointer; text-decoration: none; transition: filter .15s, opacity .15s; }
.btn.pri { background: var(--or); color: #fff; box-shadow: 0 4px 12px rgba(239, 150, 43, .35); }
.btn.pri:hover { filter: brightness(1.05); }
.btn.pri:disabled { opacity: .45; box-shadow: none; cursor: default; }
.btn.sec { background: var(--gray); color: var(--gray-ink); }
.btn.small { width: auto; height: 36px; padding: 0 18px; font-size: 14px; margin: 0; }

.trust { font-size: 12.5px; color: var(--mut); margin: 6px 0 0; }

.filecard { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
            display: flex; align-items: center; gap: 12px; text-align: right; margin-bottom: 14px; box-shadow: var(--shadow); }
.filecard .meta { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.filecard b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filecard small { color: var(--mut); font-size: 12px; }
.filecard .x { background: none; border: 0; font-size: 22px; color: var(--mut); cursor: pointer; line-height: 1; }
.fi { width: 36px; height: 44px; border-radius: 6px; flex: none; color: #fff; font-size: 10px; font-weight: 700;
      display: flex; align-items: center; justify-content: center; font-family: system-ui, sans-serif; }
.fi.pdf { background: var(--bad); } .fi.doc { background: var(--blue); }

.pct { font-weight: 700; margin: 4px 0 6px; }
.prog { width: 100%; height: 8px; background: var(--gray); border-radius: 8px; overflow: hidden; display: flex; } /* fills from the right */
.prog i { display: block; flex: none; height: 100%; width: 2%; background: var(--or); border-radius: 8px; transition: width .6s ease; }
.steps { list-style: none; padding: 0; margin: 14px 0 0; width: 100%; text-align: right; font-size: 14px; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 4px 0; color: var(--mut); }
.steps li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--gray); flex: none;
                    font-size: 10px; color: #fff; display: flex; align-items: center; justify-content: center; }
.steps li.done { color: var(--ink); } .steps li.done::before { content: "✓"; background: var(--ok); }
.steps li.now { color: var(--ink); font-weight: 600; } .steps li.now::before { background: var(--or); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .45; } }

.ok, .bad { width: 54px; height: 54px; border-radius: 50%; color: #fff; font-size: 28px; font-weight: 700;
            display: flex; align-items: center; justify-content: center; margin: 4px 0 6px; }
.ok { background: var(--ok); } .bad { background: var(--bad); }
.err { color: var(--mut); margin: 0 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 14px; }
.chips span { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 3px 12px; font-size: 13px; color: var(--mut); }

/* inner pages */
.page { flex: 1; padding: 18px 0; }
.page h1 { text-align: right; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.narrow { max-width: 380px; margin: 0 auto; }
.form label { display: block; font-size: 14px; color: var(--mut); margin: 10px 0 4px; }
.form input[type=email], .form input[type=password], .form input[type=text], .form input[type=number] {
  width: 100%; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  padding: 0 12px; font: inherit; }
.form .btn { margin-top: 16px; }
.msg { padding: 10px 12px; border-radius: 10px; font-size: 14px; margin-bottom: 12px; }
.msg.bad { background: #FBE5E3; color: #A8332C; width: auto; height: auto; display: block; font-weight: 400; font-size: 14px; border-radius: 10px; }
.msg.good { background: #E3F4EA; color: #21784A; }
.muted { color: var(--mut); font-size: 14px; }

.rows { display: flex; flex-direction: column; gap: 8px; }
.row { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; gap: 12px; }
.row .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row .meta b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .meta small { color: var(--mut); font-size: 12px; }
.pill { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 20px; white-space: nowrap; }
.pill.done { background: #E3F4EA; color: #21784A; } .pill.running { background: var(--or-soft); color: var(--or-dark); }
.pill.queued, .pill.expired { background: var(--gray); color: var(--mut); } .pill.failed { background: #FBE5E3; color: #A8332C; }
.mini-prog { width: 90px; height: 6px; background: var(--gray); border-radius: 6px; overflow: hidden; display: flex; }
.mini-prog i { display: block; height: 100%; background: var(--or); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.stat small { color: var(--mut); font-size: 12px; display: block; }
.stat b { font-size: 22px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.prose { font-size: 16px; }
.prose h2 { font-size: 18px; margin-top: 20px; }
.prose li { margin-bottom: 6px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-left: 6px; }

.foot { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; font-size: 12.5px; padding: 26px 0 4px; }
.foot a { color: var(--mut); }

@media (max-width: 560px) {
  h1 { font-size: 22px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .grid2 { grid-template-columns: 1fr; }
}

/* visitors: what is free, said up front; and the sign-up offer after a partial conversion */
.badge { background: var(--or-soft); border: 1px solid var(--or-line); color: var(--ink); border-radius: 20px;
  padding: 6px 14px; font-size: 13.5px; margin: 0 0 12px; text-align: center; }
.badge b { color: var(--or-dark); }
.freebox { width: 100%; background: var(--or-soft); border: 1px solid var(--or-line); border-radius: 14px;
  padding: 14px 16px 16px; margin: 4px 0 12px; text-align: center; }
.freebox p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.7; }
