/* FLOW-TOP — dark modern (v2). Public site + admin panel. */
@font-face{
  font-family:Cairo;
  src:url('Cairo.ttf') format('truetype');
  font-weight:200 1000;
  font-display:swap;
}
:root{
  --bg:#0a0912;
  --card:#131120;
  --card2:#171130;
  --line:#241f38;
  --line2:#2b2347;
  --ink:#f3f1fa;
  --muted:#8d87a6;
  --muted2:#6f6a88;
  --pri:#7b3bff;
  --pri2:#b06bff;
  --ok:#34d399;
  --warn:#fbbf24;
  --bad:#f87171;
  --r:16px;
}
*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%}
body{
  background:var(--bg);color:var(--ink);
  font-family:Cairo,Arial,sans-serif;font-weight:600;
  -webkit-font-smoothing:antialiased;
  min-height:100%;position:relative;overflow-x:hidden;
  padding-bottom:20px;
}
.bg-glow{
  position:fixed;inset:0;pointer-events:none;z-index:0;
  background:
    radial-gradient(560px 300px at 85% -8%,rgba(123,59,255,.42),transparent 70%),
    radial-gradient(420px 260px at 5% 4%,rgba(176,107,255,.16),transparent 70%);
}
.wrap{position:relative;z-index:1;max-width:520px;margin:0 auto;padding:0 18px}
a{color:inherit;text-decoration:none}
button{font-family:inherit;font-weight:800;cursor:pointer;border:0;background:none;color:inherit}
input,textarea,select{font-family:inherit;font-weight:600}

/* ---------- header ---------- */
.top{display:flex;align-items:center;justify-content:space-between;padding:16px 0 14px}
.brand{display:flex;align-items:center;gap:8px;direction:ltr}
.brand span{
  font-weight:900;font-style:italic;font-size:20px;letter-spacing:.3px;
  background:linear-gradient(90deg,#c9a6ff,#8a4bff);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.pill{
  font-size:11px;font-weight:800;color:#c9b6ff;border:1px solid #33295a;
  background:#191434;padding:8px 13px;border-radius:20px;
}

/* ---------- hero ---------- */
.hero{padding:4px 0 14px}
.hero h1{font-size:26px;font-weight:900;line-height:1.35;letter-spacing:-.4px}
.hero h1 em{
  font-style:normal;
  background:linear-gradient(90deg,#b98bff,#7b3bff);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.hero p{font-size:12.5px;color:var(--muted);margin-top:6px;line-height:1.6}

/* ---------- search + chips ---------- */
.search{
  height:48px;border:1px solid var(--line);border-radius:14px;display:flex;align-items:center;gap:9px;
  padding:0 14px;color:var(--muted2);background:var(--card);
}
.search input{
  flex:1;background:none;border:0;outline:none;color:var(--ink);font-size:13.5px;font-weight:700;
}
.search input::placeholder{color:var(--muted2);font-weight:600}
.chips{display:flex;gap:8px;overflow-x:auto;padding:14px 0 4px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chips button{
  font-size:11.5px;font-weight:700;padding:8px 13px;border-radius:12px;
  border:1px solid var(--line);color:#a49dbe;background:var(--card);white-space:nowrap;
}
.chips button.on{
  background:linear-gradient(90deg,#7b3bff,#a855f7);border-color:transparent;color:#fff;
  box-shadow:0 6px 18px rgba(123,59,255,.4);
}

/* ---------- service cards ---------- */
.grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:10px 0 0}
.card{
  background:var(--card);border:1px solid var(--line);border-radius:18px;padding:12px;
  display:flex;flex-direction:column;text-align:right;
}
.card:active{transform:scale(.99)}
.ic3d{width:38px;height:38px;display:block;margin-bottom:9px;filter:drop-shadow(0 4px 8px rgba(0,0,0,.45))}
.ic3d.lg{width:46px;height:46px;margin-bottom:0;flex:0 0 auto}

/* ---------- featured categories ---------- */
#featWrap{margin-top:14px}
.feat-title{font-size:13.5px;font-weight:900;padding:0 2px 10px}
.feat{margin-bottom:16px}
.feat-h{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 2px 9px}
.feat-h b{font-size:12px;font-weight:800;color:#dcd6ee;line-height:1.45;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.feat-more{flex:0 0 auto;font-size:10px;font-weight:800;color:#c9b6ff;background:#1e1740;
  border:1px solid var(--line);border-radius:10px;padding:6px 10px;white-space:nowrap}
.feat-row{display:flex;gap:9px;overflow-x:auto;padding:2px 2px 8px;scrollbar-width:none}
.feat-row::-webkit-scrollbar{display:none}
.fcard{flex:0 0 148px;background:linear-gradient(180deg,var(--card2),var(--card));
  border:1px solid var(--line2);border-radius:16px;padding:11px;text-align:right;
  display:flex;flex-direction:column;align-items:flex-start}
.fcard:active{transform:scale(.99)}
.fcard .fn{font-size:11px;font-weight:800;line-height:1.45;color:var(--ink);margin-top:2px;
  min-height:32px;overflow:hidden}
.fcard .fp{font-size:12px;font-weight:900;color:#c9b6ff;margin-top:6px}
.card .n{font-size:12.5px;font-weight:800;line-height:1.4;min-height:36px}
.card .m{font-size:10px;color:#807a99;font-weight:600;margin-top:5px}
.card .pr{display:flex;align-items:center;justify-content:space-between;margin-top:10px}
.card .pr b{font-size:14px;font-weight:900;white-space:nowrap}
.card .pr b small{font-size:9.5px;color:#807a99;font-weight:700}
.card .go{font-size:10px;font-weight:800;color:#c9b6ff;background:#1e1740;border-radius:9px;padding:5px 9px}
.empty{font-size:12.5px;color:var(--muted);padding:20px 4px;text-align:center}

.trust{display:flex;gap:8px;margin:18px 0 6px}
.trust div{flex:1;border:1px solid var(--line);background:rgba(19,17,32,.7);border-radius:14px;padding:10px 8px;text-align:center}
.trust b{display:block;font-size:11.5px;color:#c9b6ff;font-weight:900}
.trust span{display:block;font-size:9.5px;color:var(--muted2);margin-top:2px}

/* ---------- views ---------- */
.view{padding-bottom:24px}
.back{font-size:12px;font-weight:800;color:#b3a9cc;padding:6px 0 12px}
.vh,h2{font-size:20px;font-weight:900}
h3.sh{font-size:13px;font-weight:800;margin:16px 0 8px}
.center{text-align:center}
.muted{color:var(--muted);font-size:12px}
.center.muted{margin-top:4px}

/* service head on order screen */
.svc-head{
  border:1px solid var(--line2);border-radius:16px;padding:12px;display:flex;align-items:center;gap:11px;
  background:linear-gradient(180deg,var(--card2),var(--card));margin-bottom:16px;
}
.svc-head .n{font-size:13px;font-weight:800;line-height:1.35}
.svc-head .m{font-size:10.5px;color:var(--muted);margin-top:2px}
.svc-head .p{margin-right:auto;font-size:14px;font-weight:900;color:#c9b6ff;white-space:nowrap}

/* ---------- form ---------- */
.form label{display:block;font-size:11.5px;font-weight:700;color:var(--muted);margin:0 0 6px}
.form input,.form textarea{
  width:100%;background:var(--card);border:1px solid var(--line);border-radius:12px;
  padding:12px 13px;color:var(--ink);font-size:13px;font-weight:700;outline:none;margin-bottom:12px;
}
.form textarea{resize:vertical;min-height:56px;line-height:1.6}
.form input:focus,.form textarea:focus{border-color:#4b3b86;box-shadow:0 0 0 3px rgba(123,59,255,.18)}
.form input::placeholder,.form textarea::placeholder{color:#5f5a76;font-weight:600}
.upload{
  display:flex;align-items:center;justify-content:center;gap:8px;height:54px;border:1.4px dashed #3a2f5e;
  border-radius:12px;background:var(--card);color:var(--muted);font-size:11.5px;font-weight:700;margin-bottom:14px;
}
.upload.has{border-style:solid;border-color:#4b3b86;color:#c9b6ff}

.btn{
  width:100%;height:52px;border-radius:15px;display:flex;align-items:center;justify-content:center;
  font-size:14px;font-weight:900;color:#fff;
  background:linear-gradient(90deg,#7b3bff,#b06bff);
  box-shadow:0 12px 28px rgba(123,59,255,.42);
}
.btn:disabled{opacity:.55;box-shadow:none}
.btn.sm{width:auto;height:46px;padding:0 18px;border-radius:12px;font-size:12.5px}
.btn.wa{background:linear-gradient(90deg,#128c7e,#25d366);box-shadow:0 12px 28px rgba(37,211,102,.28);margin-top:12px}
.ghost{width:100%;height:46px;border-radius:13px;border:1px solid var(--line2);color:#b9b0d4;font-size:12.5px;margin-top:10px}
.micro{font-size:10px;color:var(--muted2);text-align:center;margin-top:10px;line-height:1.6}
.err{background:rgba(248,113,113,.1);border:1px solid rgba(248,113,113,.4);color:#ffb4b4;
     font-size:11.5px;font-weight:700;border-radius:12px;padding:10px 12px;margin-bottom:10px}

/* ---------- payment ---------- */
.pay-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:4px}
.pay-top .lbl{font-size:11px;color:var(--muted);font-weight:700}
.amount{
  font-size:34px;font-weight:900;letter-spacing:-.6px;margin-top:2px;
  background:linear-gradient(90deg,#e7d9ff,#b98bff);
  -webkit-background-clip:text;background-clip:text;color:transparent;white-space:nowrap;
}
.amount small{font-size:13px;color:var(--muted);-webkit-text-fill-color:var(--muted)}
.pay-svc{text-align:left;font-size:11.5px;color:var(--muted);font-weight:700;max-width:52%;line-height:1.5}
.methods{display:flex;flex-direction:column;gap:8px}
.mth{
  display:flex;align-items:center;gap:11px;border:1px solid var(--line);border-radius:13px;
  padding:11px 12px;background:var(--card);width:100%;text-align:right;
}
.mth.on{border-color:#7b3bff;background:#1c1440;box-shadow:0 0 0 1px #7b3bff inset,0 8px 22px rgba(123,59,255,.22)}
.mth .mi{width:32px;height:32px;border-radius:9px;display:flex;align-items:center;justify-content:center;
         font-size:11px;font-weight:900;background:#241a45;color:#c9b6ff;flex:0 0 auto}
.mth .t{display:block;font-size:12.5px;font-weight:800}
.mth .s{font-size:10px;color:var(--muted);margin-top:1px;font-weight:600}
.mth .radio{margin-right:auto;width:18px;height:18px;border-radius:50%;border:1.6px solid #3a3360;flex:0 0 auto}
.mth.on .radio{border:5px solid #9b5cff}
.instr{
  border:1px solid var(--line2);border-radius:14px;background:rgba(23,17,48,.7);padding:13px;
  margin:12px 0;font-size:11.5px;color:#c9c2dd;line-height:1.8;
}
.instr .row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px}
.instr b{font-size:14px;font-weight:900;color:#fff;direction:ltr;unicode-bidi:embed}
.instr .copy{font-size:10.5px;font-weight:800;color:#c9b6ff;background:#241a45;border-radius:8px;padding:5px 9px}
.instr .note{color:var(--muted);font-size:10.5px;margin-top:6px}

/* ---------- done ---------- */
.okmark{
  width:62px;height:62px;border-radius:50%;margin:14px auto 12px;display:flex;align-items:center;justify-content:center;
  font-size:28px;font-weight:900;color:#0a0912;background:linear-gradient(135deg,#b98bff,#7b3bff);
  box-shadow:0 14px 36px rgba(123,59,255,.5);
}
.code-box{
  border:1px solid var(--line2);border-radius:14px;background:var(--card);padding:12px 14px;
  display:flex;align-items:center;justify-content:space-between;margin:14px 0 0;
}
.code-box span{font-size:11px;color:var(--muted)}
.code-box b{font-size:18px;font-weight:900;letter-spacing:.5px;color:#c9b6ff;direction:ltr}

/* ---------- track ---------- */
.track-row{display:flex;gap:8px;margin:12px 0}
.track-row input{
  flex:1;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:12px 13px;
  color:var(--ink);font-size:13px;font-weight:700;outline:none;direction:ltr;text-align:left;
}
.res{border:1px solid var(--line2);border-radius:14px;background:var(--card);padding:13px;font-size:12px;line-height:1.9}
.res .st{display:inline-block;font-size:10.5px;font-weight:800;padding:3px 9px;border-radius:8px;margin-right:6px}
.st.awaiting_payment{background:rgba(251,191,36,.15);color:#fbbf24}
.st.paid{background:rgba(123,59,255,.2);color:#c9b6ff}
.st.done{background:rgba(52,211,153,.15);color:#34d399}
.st.canceled{background:rgba(248,113,113,.15);color:#f87171}

/* ---------- footer ---------- */
.foot{text-align:center;font-size:10px;color:var(--muted2);padding:18px 0 8px;line-height:1.9}
.foot a{display:block;color:#4b4368;font-size:9.5px;margin-top:6px}

/* ---------- desktop ---------- */
@media (min-width:760px){
  .wrap{max-width:980px}
  .grid{grid-template-columns:repeat(3,1fr)}
  .hero h1{font-size:32px}
  #v-order,#v-pay,#v-done,#v-track{max-width:560px;margin:0 auto}
}

/* =========================================================
   admin
   ========================================================= */
.adm{position:relative;z-index:1;max-width:900px;margin:0 auto;padding:18px}
.adm-top{display:flex;align-items:center;justify-content:space-between;padding:8px 0 16px}
.adm-top .t{font-size:15px;font-weight:900}
.adm-top .t small{display:block;font-size:10.5px;color:var(--muted);font-weight:700}
.tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:14px;overflow-x:auto}
.tabs button{font-size:12px;font-weight:800;color:var(--muted);padding:8px 12px;border-radius:10px;white-space:nowrap}
.tabs button.on{background:#1c1440;color:#dcc9ff;box-shadow:0 0 0 1px #4b3b86 inset}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:14px}
.stat{border:1px solid var(--line);border-radius:14px;background:var(--card);padding:10px}
.stat b{display:block;font-size:18px;font-weight:900}
.stat span{font-size:10px;color:var(--muted);font-weight:700}
.panel{border:1px solid var(--line);border-radius:16px;background:rgba(19,17,32,.75);padding:14px;margin-bottom:12px}
.panel h3{font-size:13px;font-weight:900;margin-bottom:10px}
.field{margin-bottom:10px}
.field label{display:block;font-size:11px;color:var(--muted);font-weight:700;margin-bottom:5px}
.field input,.field textarea,.field select{
  width:100%;background:#0f0d1a;border:1px solid var(--line);border-radius:10px;padding:10px 12px;
  color:var(--ink);font-size:12.5px;font-weight:700;outline:none;
}
.field textarea{min-height:64px;resize:vertical;line-height:1.6}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.check{display:flex;align-items:center;gap:8px;font-size:11.5px;color:#c0b8d8;margin:6px 0}
.check input{width:16px;height:16px;accent-color:#7b3bff}
.o-item{border:1px solid var(--line);border-radius:14px;background:var(--card);padding:11px 12px;margin-bottom:8px}
.o-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.o-code{font-size:12.5px;font-weight:900;color:#c9b6ff;direction:ltr}
.o-svc{font-size:12px;font-weight:800}
.o-amt{font-size:12.5px;font-weight:900;margin-right:auto}
.o-meta{font-size:10.5px;color:var(--muted);margin-top:6px;line-height:1.8;word-break:break-word}
.o-meta b{color:#c0b8d8;font-weight:700}
.o-actions{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}
.s-btn{font-size:10.5px;font-weight:800;padding:6px 10px;border-radius:9px;border:1px solid var(--line2);color:#b9b0d4}
.s-btn.on{background:#1c1440;border-color:#7b3bff;color:#dcc9ff}
.s-btn.danger{border-color:rgba(248,113,113,.5);color:#f87171}
.srv{border:1px solid var(--line);border-radius:14px;background:var(--card);padding:11px 12px;margin-bottom:8px}
.srv .n{font-size:12.5px;font-weight:800}
.srv .m{font-size:10.5px;color:var(--muted);margin-top:3px}
.srv .acts{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}
.srv.off{opacity:.5}
.login{max-width:360px;margin:8vh auto 0;position:relative;z-index:1;padding:0 18px}
.login .brand{justify-content:center;margin-bottom:18px}
.login h1{font-size:16px;font-weight:900;text-align:center;margin-bottom:16px}
.toast{
  position:fixed;bottom:18px;right:50%;transform:translateX(50%);background:#1c1440;border:1px solid #4b3b86;
  color:#e7dcff;font-size:12px;font-weight:800;padding:11px 16px;border-radius:12px;z-index:50;
  box-shadow:0 12px 30px rgba(0,0,0,.5);
}
@media (max-width:620px){
  .stats{grid-template-columns:repeat(2,1fr)}
  .row2{grid-template-columns:1fr}
}

/* ---------- v1.1 additions: list head, more, category sheet, proof ---------- */
.listhead{display:flex;align-items:center;justify-content:space-between;padding:14px 2px 8px}
.listhead b{font-size:13.5px;font-weight:900}
.listhead span{font-size:10.5px;color:var(--muted2);font-weight:700}
.more{width:100%;height:46px;border-radius:13px;border:1px solid var(--line2);color:#c9b6ff;
      font-size:12.5px;font-weight:800;background:rgba(28,20,64,.5);margin-top:12px}
.chips button.all{border-color:#4b3b86;color:#c9b6ff}
.hint{font-size:10px;color:var(--muted2);font-weight:700}
.qtot{font-size:12px;font-weight:800;color:#c9b6ff;margin:-4px 0 12px}
body.locked{overflow:hidden}
.sheet-wrap{position:fixed;inset:0;z-index:40;display:flex;align-items:flex-end;justify-content:center}
.sheet-bg{position:absolute;inset:0;background:rgba(4,3,10,.66)}
.sheet-panel{position:relative;width:100%;max-width:520px;max-height:82vh;background:#0f0d1a;
  border:1px solid var(--line2);border-bottom:0;border-radius:22px 22px 0 0;padding:10px 16px 18px;
  display:flex;flex-direction:column;box-shadow:0 -20px 60px rgba(0,0,0,.6)}
.sheet-handle{width:42px;height:4px;border-radius:4px;background:#33295a;margin:2px auto 10px}
.sheet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.sheet-head b{font-size:14px;font-weight:900}
.sheet-head .x{color:var(--muted);font-size:15px;padding:4px 8px}
.sheet-search{width:100%;background:#131120;border:1px solid var(--line);border-radius:11px;
  padding:10px 12px;color:var(--ink);font-size:12.5px;font-weight:700;outline:none;margin-bottom:10px}
.cat-list{overflow-y:auto;-webkit-overflow-scrolling:touch}
.cat-item{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;
  padding:11px 12px;border-radius:11px;border:1px solid transparent;text-align:right;color:#cfc7e4;font-size:12px;font-weight:700}
.cat-item small{color:var(--muted2);font-size:10px;font-weight:800}
.cat-item.on{background:#1c1440;border-color:#4b3b86;color:#e7dcff}
.proofbox{border:1px solid var(--line2);border-radius:16px;background:rgba(23,17,48,.7);padding:14px;margin-top:12px}
.proofbox b{font-size:12.5px;font-weight:900}
.proofbox p{font-size:10.5px;color:var(--muted);margin:4px 0 10px;line-height:1.7}
.proofbox .upload{margin-bottom:10px}
.ok-note{font-size:11.5px;font-weight:800;color:#34d399;margin-top:8px;text-align:center}
a.ghost{display:flex;align-items:center;justify-content:center}

/* fixes */
.sheet-wrap[hidden]{display:none}
.mth .t,.mth .s{display:block}
.mth>span:nth-child(2){min-width:0;flex:1}
.mth .s{direction:ltr;text-align:right;unicode-bidi:plaintext}
.o-meta b{display:inline-block;min-width:52px}
.o-meta{line-height:2.1}


/* ---------- admin-only controls on the home page ---------- */
.adm-note{
  background:linear-gradient(90deg,rgba(123,59,255,.22),rgba(123,59,255,.06));
  border-bottom:1px solid rgba(150,110,255,.35);color:#d9c9ff;font-size:10.5px;font-weight:800;
  padding:7px 14px;text-align:center;line-height:1.5;
}
.feat-tools{display:flex;gap:6px;flex:0 0 auto}
.ft{
  font-size:10px;font-weight:800;padding:6px 11px;border-radius:10px;
  border:1px solid var(--line2);background:#1e1740;color:#c9b6ff;white-space:nowrap;
}
.ft.danger{color:#ff9a9a;border-color:rgba(255,120,120,.35);background:rgba(60,20,30,.5)}
.ft:disabled{opacity:.5}
.feat-row.expanded{flex-wrap:wrap;overflow:visible}
.feat-row.expanded .fcard{flex:0 0 calc(50% - 5px)}
.fcard{position:relative}
.fcard .x{
  position:absolute;top:6px;left:6px;width:20px;height:20px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;font-size:13px;line-height:1;
  color:#ffb3b3;background:rgba(50,16,26,.85);border:1px solid rgba(255,120,120,.4);
}
.toast{
  position:fixed;left:50%;bottom:18px;transform:translate(-50%,20px);opacity:0;pointer-events:none;
  max-width:88%;padding:10px 14px;border-radius:12px;font-size:11.5px;font-weight:800;text-align:center;
  color:#efe9ff;background:rgba(30,20,58,.96);border:1px solid var(--line2);
  box-shadow:0 12px 30px rgba(0,0,0,.5);transition:opacity .18s, transform .18s;z-index:99;
}
.toast.on{opacity:1;transform:translate(-50%,0)}
