/* 📱 مل مالڪ جي فون ايپ (0.55) — ويب سائيٽ جا رنگ، فون لاءِ */
:root { --bg:#f4f6f8; --card:#fff; --text:#1f2a30; --muted:#5f6b73; --accent:#2e7d4f; --accent2:#1f3a2e;
        --line:#e3e7ea; --red:#c62828; --amber:#9a6200; --amber-bg:#fff4d6; --red-bg:#fdecec; --green-bg:#e7f4ec; }
* { box-sizing:border-box; }
html, body { margin:0; }
body { font-family:"Segoe UI",system-ui,-apple-system,Roboto,sans-serif; background:var(--bg); color:var(--text);
       font-size:16px; line-height:1.5; -webkit-text-size-adjust:100%; }
html[dir=rtl] body { font-family:"Noto Naskh Arabic","Noto Sans Arabic","Segoe UI",Tahoma,sans-serif; font-size:17px; }
a { color:var(--accent); }
.hidden { display:none !important; }

.bar { background:var(--accent2); color:#fff; position:sticky; top:0; z-index:10;
       padding-top:env(safe-area-inset-top); box-shadow:0 1px 4px rgba(0,0,0,.2); }
.bar-in { max-width:560px; margin:0 auto; display:flex; align-items:center; gap:10px; padding:12px 16px; }
.title { flex:1; display:flex; align-items:center; gap:8px; font-weight:700; font-size:19px; min-width:0; }
.title span:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.icon-btn { background:transparent; border:1px solid #4f7a66; color:#fff; border-radius:8px; font-size:20px;
            width:40px; height:36px; cursor:pointer; line-height:1; }
.icon-btn.spin { animation:spin 1s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }

main { max-width:560px; margin:0 auto; padding:12px 12px calc(24px + env(safe-area-inset-bottom)); }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:14px 16px; margin-bottom:12px; }
h1 { font-size:22px; margin:0 0 6px; }
h2 { font-size:17px; margin:0 0 8px; }
h3 { font-size:15px; margin:12px 0 6px; color:var(--muted); }
.muted { color:var(--muted); } .small { font-size:14px; } .center { text-align:center; }
.red { color:var(--red); } .green { color:var(--accent); }

label { display:block; color:var(--muted); font-size:14px; margin:12px 0 4px; }
input { width:100%; font:inherit; padding:11px 12px; border:1px solid #cfd6db; border-radius:9px; background:#fff; }
.ltr { direction:ltr; text-align:left; }
input.code { letter-spacing:4px; font-size:20px; text-align:center; }

.btn { font:inherit; padding:10px 16px; border-radius:9px; border:1px solid #cfd6db; background:#fff; color:var(--text); cursor:pointer; }
.btn.primary { background:var(--accent); border-color:var(--accent); color:#fff; }
.btn.danger { color:var(--red); border-color:#f0c4c4; }
.btn.wide { width:100%; margin-top:14px; padding:12px; font-weight:600; }
.btn:disabled { opacity:.6; }
.btns { display:flex; flex-wrap:wrap; gap:8px; }

.notice { border-radius:10px; padding:10px 12px; margin:10px 0; font-size:15px; background:var(--green-bg); }
.notice.bad { background:var(--red-bg); color:var(--red); }
.notice.warn { background:var(--amber-bg); color:var(--amber); }

.money .label { color:var(--muted); font-size:14px; }
.big { font-size:30px; font-weight:700; margin:2px 0 6px; direction:ltr; unicode-bidi:isolate; }
html[dir=rtl] .big { text-align:right; }

.rows .row { display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding:8px 0;
             border-top:1px solid var(--line); }
.rows .row:first-child { border-top:none; }
.row .k { min-width:0; overflow-wrap:anywhere; }
.row .k .sub { display:block; color:var(--muted); font-size:13px; }
.row .v { white-space:nowrap; font-weight:600; direction:ltr; unicode-bidi:isolate; }
.row .v .sub { display:block; color:var(--muted); font-weight:400; font-size:13px; text-align:end; }
.row.total { border-top:2px solid var(--line); }
.row.strong .k { font-weight:600; }

.tabs { display:flex; gap:6px; margin-bottom:8px; }
.tab { flex:1; font:inherit; font-size:14px; padding:8px 4px; border-radius:8px; border:1px solid var(--line);
       background:#f7f9fa; color:var(--muted); cursor:pointer; }
.tab.on { background:var(--accent); border-color:var(--accent); color:#fff; font-weight:600; }

.tag { display:inline-block; font-size:12px; padding:1px 7px; border-radius:20px; margin-inline-start:6px; vertical-align:middle; }
.tag.late { background:var(--red-bg); color:var(--red); }
.tag.today { background:var(--amber-bg); color:var(--amber); }
.dir-in { color:var(--accent); } .dir-out { color:var(--red); }

.foot { text-align:center; margin:18px 0 6px; }
.langs { margin:14px 0 6px; }
.langs button { background:transparent; border:1px solid #cfd6db; color:var(--muted); border-radius:7px; padding:4px 10px;
                margin:0 3px; font:inherit; font-size:14px; cursor:pointer; }
.langs button.on { background:var(--accent2); border-color:var(--accent2); color:#fff; }

/* ===== ٽوسٽ ميسيج (ui-feedback.js) ===== */
.fb-src { display: none !important; }
.fb-toast { position: fixed; top: 16px; left: 50%; z-index: 2147483000; display: flex; align-items: center; gap: 12px; width: max-content;
  min-width: 260px; max-width: min(92vw, 560px); padding: 14px 14px 14px 16px; border-radius: 12px; font-weight: 600; font-size: 15px; line-height: 1.4;
  box-shadow: 0 12px 32px rgba(0,0,0,.30); border-inline-start: 6px solid; transform: translate(-50%, -160%);
  animation: fbin .4s cubic-bezier(.2,.9,.3,1.2) forwards; }
.fb-toast.fb-out { animation: fbout .3s ease forwards; }
.fb-toast i { flex: none; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 16px; color: #fff; }
.fb-toast span { flex: 1; }
.fb-toast button { background: none !important; border: 0 !important; box-shadow: none !important; color: inherit !important; padding: 0 4px !important; margin: 0 !important;
  width: auto !important; min-height: 0 !important; font-size: 22px; line-height: 1; font-weight: 400; opacity: .7; cursor: pointer; }
.fb-toast button:hover { opacity: 1; }
.fb-toast.fb-ok   { background: #E3F2EA; color: #14532d; border-color: #1f8a5b; } .fb-toast.fb-ok i   { background: #1f8a5b; }
.fb-toast.fb-err  { background: #FCE8E6; color: #b3261e; border-color: #c63f36; } .fb-toast.fb-err i  { background: #c63f36; }
.fb-toast.fb-info { background: #E6F1F2; color: #0b4a50; border-color: #0f5c63; } .fb-toast.fb-info i { background: #0f5c63; }
@keyframes fbin  { to { transform: translate(-50%, 0); } }
@keyframes fbout { from { transform: translate(-50%, 0); opacity: 1; } to { transform: translate(-50%, -160%); opacity: 0; } }
