/* callme — responsive UI: phone (bottom nav, bottom sheets) and computer (sidebar, dialogs). */
:root {
	--bg: #f1f4f9;
	--card: #ffffff;
	--ink: #0f172a;
	--ink-2: #334155;
	--muted: #64748b;
	--line: #e3e8ef;
	--soft: #f6f8fb;
	--primary: #4f46e5;
	--primary-2: #6366f1;
	--primary-soft: #eef2ff;
	--head: #0f172a;
	--green: #059669; --green-soft: #ecfdf5; --green-line: #a7f3d0;
	--amber: #b45309; --amber-soft: #fffbeb; --amber-line: #fde68a;
	--rose: #be123c; --rose-soft: #fff1f2; --rose-line: #fecdd3;
	--blue: #1d4ed8; --blue-soft: #eff6ff; --blue-line: #bfdbfe;
	--radius: 16px;
	--shadow: 0 1px 2px rgb(15 23 42 / .04), 0 4px 16px rgb(15 23 42 / .05);
	--side-w: 248px;
	font-family: 'Segoe UI', system-ui, -apple-system, Roboto, 'Noto Sans Arabic', Tahoma, sans-serif;
	-webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; margin: 0; background: var(--bg); color: var(--ink); -webkit-tap-highlight-color: transparent; }
body { min-height: 100dvh; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { opacity: .45; cursor: default; }
a { color: inherit; text-decoration: none; }
.b { font-weight: 700; }
.small { font-size: 12.5px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wrap { flex-wrap: wrap; }

/* ---------- shell ---------- */
.shell { min-height: 100dvh; }
.boot { display: grid; place-items: center; padding: 70px 0; }
.spinner { width: 32px; height: 32px; border: 3px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 8px auto; }
.spinner.sm { width: 20px; height: 20px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.main { min-width: 0; padding-bottom: 90px; }

/* ---------- header ---------- */
.head { position: sticky; top: 0; z-index: 20; background: var(--head); color: #fff; padding: 14px 16px; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.head-text { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mobile-brand { width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; }
.head-title { font-size: 19px; font-weight: 800; margin: 0; line-height: 1.2; }
.head-sub { font-size: 12.5px; color: #94a3b8; margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.head-actions { display: flex; gap: 8px; flex-shrink: 0; }
.live-inline { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgb(52 211 153 / .6); animation: pulse 1.8s infinite; display: inline-block; flex-shrink: 0; }
.dot.off { background: #f59e0b; animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgb(52 211 153 / 0); } 100% { box-shadow: 0 0 0 0 rgb(52 211 153 / 0); } }
.icon-btn { height: 44px; min-width: 44px; padding: 0 12px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: rgb(255 255 255 / .1); color: #fff; font-weight: 700; font-size: 14px; }
.icon-btn.primary { background: var(--primary); }
.lbl-desk { display: none; }

/* ---------- toolbar / chips ---------- */
.toolbar { position: sticky; top: 66px; z-index: 10; background: rgb(241 244 249 / .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.toolbar:empty { display: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; align-items: center; }
.chips::-webkit-scrollbar { display: none; }
.chips.sub { padding-bottom: 0; color: var(--muted); font-size: 13px; }
.chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); transition: background .15s, color .15s; }
.chip:hover { border-color: #cbd5e1; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .n { font-size: 12px; opacity: .65; }
.chip .sd { width: 8px; height: 8px; border-radius: 50%; }

.content { padding: 14px 16px 24px; }
.list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.list > li { min-width: 0; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); min-width: 0; }
button.card { width: 100%; text-align: start; display: block; overflow: hidden; transition: transform .1s, box-shadow .15s, border-color .15s; }
button.card:hover { border-color: #c7d2fe; box-shadow: 0 6px 22px rgb(79 70 229 / .08); }
button.card:active { transform: scale(.99); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.meta { font-size: 12px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.name { font-size: 16px; font-weight: 800; margin: 4px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.items-line { font-size: 14px; color: var(--muted); margin: 6px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-line { font-size: 12.5px; color: var(--muted); margin: 5px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foot { margin-top: 10px; }
.money { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.money.big { font-size: 18px; }
.tag { font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: var(--soft); color: var(--muted); border: 1px solid var(--line); }
.tag.shopify { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.badge { flex-shrink: 0; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.b-pending { background: var(--blue-soft); color: var(--blue); border-color: var(--blue-line); }
.b-confirmed { background: var(--green-soft); color: var(--green); border-color: var(--green-line); }
.b-no_answer { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-line); }
.b-cancelled { background: var(--rose-soft); color: var(--rose); border-color: var(--rose-line); }
.d-pending { background: #3b82f6; } .d-confirmed { background: #10b981; } .d-no_answer { background: #f59e0b; } .d-cancelled { background: #f43f5e; }
.countdown { margin-top: 8px; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--rose); background: var(--rose-soft); border: 1px solid var(--rose-line); border-radius: 10px; padding: 6px 10px; }
.card.cancelled { border-color: var(--rose-line); }
.card.off { opacity: .6; }
.empty { text-align: center; padding: 70px 10px; color: var(--muted); font-size: 14px; }
.empty .big { font-size: 42px; opacity: .5; margin-bottom: 6px; }
.banner { display: flex; align-items: center; gap: 10px; background: var(--primary-soft); color: #3730a3; border: 1px solid #c7d2fe; border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; font-size: 13.5px; font-weight: 600; }
.banner span { flex: 1; }

/* ---------- buttons ---------- */
.btn { height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14px; padding: 0 16px; width: 100%; transition: filter .15s, transform .1s; white-space: nowrap; }
.btn:hover:not(:disabled) { filter: brightness(.96); }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn.auto { width: auto; }
.btn.sq { width: 40px; padding: 0; flex-shrink: 0; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-amber { background: var(--amber-soft); color: var(--amber); border: 1px solid var(--amber-line); }
.btn-rose { background: var(--rose-soft); color: var(--rose); border: 1px solid var(--rose-line); }
.btn-soft { background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.btn-wa { background: #16a34a; color: #fff; }
.btn-sm { height: 38px; font-size: 13px; border-radius: 10px; padding: 0 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 10px; }
.grid3 .btn { padding: 0 6px; font-size: 12px; }
.stack { display: grid; gap: 10px; align-content: start; }
.card-actions { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }

/* ---------- navigation: bottom bar on phone ---------- */
.nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 20px rgb(15 23 42 / .05); }
.nav-items { display: flex; }
.nav-items a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 10px; font-size: 11px; font-weight: 700; color: var(--muted); position: relative; }
.nav-items a.on { color: var(--primary); }
.nav-items svg { width: 22px; height: 22px; }
.nav .pill { position: absolute; top: 3px; inset-inline-start: calc(50% + 5px); background: var(--rose); color: #fff; font-size: 10px; font-weight: 800; border-radius: 999px; padding: 1px 6px; min-width: 18px; text-align: center; }
.side-brand, .side-foot, .side-only { display: none !important; }

/* ---------- sheets ---------- */
.overlay { position: fixed; inset: 0; background: rgb(15 23 42 / .5); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; background: var(--card); border-radius: 24px 24px 0 0; padding: 14px 18px calc(24px + env(safe-area-inset-bottom)); animation: up .2s ease-out; }
.grab { width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 10px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: .5; } }
.sheet h2 { font-size: 20px; margin: 4px 0 0; }
.box { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-top: 12px; }
.box.white { background: #fff; }
.box.rose { background: var(--rose-soft); border-color: var(--rose-line); }
.rose-text { color: var(--rose); font-weight: 700; font-size: 14px; }
.box-title { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin: 0 0 8px; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 3px 0; }
.kv span:first-child { color: var(--muted); }
.item-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.item-row:last-of-type { border-bottom: 0; }
.total-row { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.feed { display: grid; gap: 2px; }
.feed-row { display: flex; gap: 10px; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.feed-row:last-child { border-bottom: 0; }
.feed-time { color: var(--muted); font-size: 11.5px; flex-shrink: 0; min-width: 44px; }
.card.feed { max-height: 70vh; overflow-y: auto; }

/* ---------- forms ---------- */
label.f { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); min-width: 0; }
.input { width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 0 12px; font-size: 15px; outline: none; min-width: 0; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 70px; padding: 10px 12px; resize: vertical; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgb(79 70 229 / .15); }
.input[readonly] { background: var(--soft); color: var(--muted); }
.form { display: grid; gap: 12px; margin-top: 12px; }
.err { background: var(--rose-soft); color: var(--rose); border: 1px solid var(--rose-line); border-radius: 10px; padding: 8px 12px; font-size: 13px; margin: 0; }
.ok { background: var(--green-soft); color: var(--green); border: 1px solid var(--green-line); border-radius: 10px; padding: 8px 12px; font-size: 13px; margin: 0; }
.item-edit { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: grid; gap: 6px; }
.item-edit .r { display: grid; grid-template-columns: 1fr 70px 90px; gap: 6px; }
.item-edit .input { height: 40px; font-size: 14px; }
.check { width: 22px; height: 22px; border-radius: 7px; border: 2px solid #cbd5e1; display: grid; place-items: center; flex-shrink: 0; background: #fff; color: #fff; font-size: 14px; font-weight: 900; }
.check.on { background: var(--primary); border-color: var(--primary); }
.card.selected { border-color: var(--primary); box-shadow: 0 0 0 2px rgb(79 70 229 / .15); }
.conf-body { width: 100%; text-align: start; display: flex; gap: 12px; }
.sel-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.sel-all { gap: 8px; font-weight: 700; font-size: 14px; }
.sticky-actions { position: sticky; bottom: 72px; z-index: 5; margin-top: 14px; display: grid; gap: 8px; }
.section-title { font-size: 13px; font-weight: 800; color: var(--muted); margin: 4px 0 10px; }
.code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; word-break: break-all; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-weight: 500; color: var(--ink-2); }
.steps { margin: 6px 0 0; padding-inline-start: 18px; font-size: 13px; color: var(--muted); line-height: 1.8; }

/* ---------- team / admin ---------- */
.who { display: flex; gap: 10px; align-items: center; }
.avatar { position: relative; width: 42px; height: 42px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 800; font-size: 17px; flex-shrink: 0; }
.avatar.sm { width: 34px; height: 34px; font-size: 14px; }
.avatar i { position: absolute; bottom: 0; inset-inline-end: 0; width: 12px; height: 12px; border-radius: 50%; background: #cbd5e1; border: 2px solid #fff; }
.avatar i.on { background: #22c55e; }
.mini-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; font-size: 12px; font-weight: 700; }
.mini-stats span { padding: 3px 8px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); }
.mini-stats .rate { background: var(--primary-soft); color: var(--primary); border-color: #c7d2fe; }
.invite { background: var(--primary-soft); border-color: #c7d2fe; }

/* ---------- dashboard ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.stat .v { font-size: 26px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .v.sm { font-size: 19px; }
.stat .l { font-size: 12px; color: var(--muted); font-weight: 700; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 8px; font-size: 13px; margin: 9px 0; }
.bar { height: 10px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; }
.two-col { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }

/* ---------- auth ---------- */
.shell.auth { min-height: 100dvh; }
.login { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 18px; background: linear-gradient(180deg, var(--head) 0 36%, var(--bg) 36%); }
.login-art { display: none; }
.login-box { width: 100%; max-width: 420px; }
.login .logo { text-align: center; color: #fff; margin-bottom: 18px; }
.login .logo img { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 10px 30px rgb(0 0 0 / .3); }
.login .logo h1 { margin: 10px 0 2px; font-size: 26px; }
.login .logo p { margin: 0; color: #94a3b8; font-size: 14px; }
.login .card { padding: 20px; }
.lang-row { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.lang-row button { font-size: 13px; padding: 6px 10px; border-radius: 8px; color: var(--muted); }
.lang-row button.on { background: #fff; color: var(--ink); font-weight: 700; box-shadow: var(--shadow); }

/* ---------- toasts ---------- */
#toast-root { position: fixed; top: 14px; left: 0; right: 0; z-index: 80; display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.toast { max-width: 92%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; border-radius: 999px; padding: 10px 16px; box-shadow: 0 10px 30px rgb(0 0 0 / .25); animation: up .2s; display: flex; align-items: center; gap: 8px; }
.toast.new { background: #7c2d12; }
.toast .bell { animation: ring .6s ease-in-out 3; display: inline-block; }
@keyframes ring { 25% { transform: rotate(18deg); } 75% { transform: rotate(-18deg); } }

/* =================== tablet =================== */
@media (min-width: 640px) {
	.list.grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
	.stats { grid-template-columns: repeat(4, 1fr); }
	.content { padding: 18px 22px 28px; }
	.chips { padding: 10px 22px; }
	.head { padding: 16px 22px; }
}

/* =================== computer =================== */
@media (min-width: 1000px) {
	body { background: var(--bg); }
	.shell.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100dvh; }
	.main { padding-bottom: 30px; }
	/* sidebar */
	.nav { position: sticky; top: 0; bottom: auto; height: 100dvh; display: flex; flex-direction: column; background: var(--head); color: #cbd5e1; border: 0; box-shadow: none; padding: 18px 14px; }
	.side-brand { display: flex !important; align-items: center; gap: 10px; padding: 4px 8px 20px; border-bottom: 1px solid rgb(255 255 255 / .08); margin-bottom: 14px; }
	.side-brand img { width: 40px; height: 40px; border-radius: 12px; }
	.side-brand b { display: block; color: #fff; font-size: 18px; }
	.side-brand small { color: #94a3b8; font-size: 12px; display: block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.nav-items { flex-direction: column; gap: 4px; flex: 1; }
	.nav-items a { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 11px 12px; border-radius: 12px; font-size: 14.5px; color: #cbd5e1; }
	.nav-items a:hover { background: rgb(255 255 255 / .06); color: #fff; }
	.nav-items a.on { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgb(79 70 229 / .35); }
	.nav-items a.side-only { display: flex !important; margin-top: 8px; }
	.nav .pill { position: static; margin-inline-start: auto; order: 3; }
	.nav-items .lbl { order: 2; }
	.side-foot { display: grid !important; gap: 12px; padding: 14px 8px 4px; border-top: 1px solid rgb(255 255 255 / .08); font-size: 12.5px; color: #94a3b8; }
	.side-user { display: flex; gap: 10px; align-items: center; color: #fff; }
	.side-user b { display: block; font-size: 13.5px; }
	.side-user small { color: #94a3b8; }
	.side-user .avatar { background: rgb(255 255 255 / .1); color: #fff; }
	/* header becomes a light page header */
	.head { position: sticky; top: 0; background: rgb(241 244 249 / .92); backdrop-filter: blur(10px); color: var(--ink); padding: 22px 32px 12px; }
	.mobile-brand { display: none; }
	.head-title { font-size: 26px; }
	.head-sub { color: var(--muted); font-size: 13.5px; }
	.icon-btn { color: #fff; }
	.lbl-desk { display: inline; }
	.toolbar { top: 84px; background: rgb(241 244 249 / .92); border-bottom: 0; }
	.chips { padding: 6px 32px 10px; }
	.content { padding: 12px 32px 32px; }
	.list.grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
	.two-col { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: 18px; }
	.sticky-actions { bottom: 16px; max-width: 480px; margin-inline: auto; }
	/* sheets become centered dialogs */
	.overlay { align-items: center; padding: 24px; }
	.sheet { border-radius: 22px; max-height: 88dvh; padding: 20px 24px 24px; box-shadow: 0 30px 80px rgb(0 0 0 / .3); animation: pop .18s ease-out; }
	.grab { display: none; }
	@keyframes pop { from { transform: scale(.97); opacity: 0; } }
	/* login with brand panel */
	.login { background: var(--bg); padding: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
	.login-art { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: radial-gradient(1200px 600px at 30% 20%, #312e81 0%, var(--head) 60%); color: #fff; padding: 40px; }
	.login-art img { width: 110px; height: 110px; border-radius: 28px; box-shadow: 0 20px 60px rgb(0 0 0 / .4); }
	.login-art h1 { font-size: 40px; margin: 18px 0 0; }
	.login-art p { color: #a5b4fc; font-size: 17px; margin: 0; }
	.login-box { align-self: center; justify-self: center; padding: 40px 24px; }
	.login .logo { display: none; }
	.lang-row button.on { background: var(--card); }
}
@media (min-width: 1500px) {
	.list.grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
}

/* YouCan Ship */
.yc-ok { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 8px; padding: 4px 8px; display: inline-block; }
.yc-err { margin-top: 6px; font-size: 12.5px; font-weight: 600; color: #be123c; background: #fff1f2; border: 1px solid #fecdd3; border-radius: 8px; padding: 5px 8px; }
.yc-warn { margin-top: 6px; font-size: 12.5px; font-weight: 600; color: #b45309; }
.hint { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 4px; }
.hint.ok { color: #047857; }
.hint.bad { color: #be123c; }

/* ---------- confirmed page on phones: no side scrolling, solid action bar ---------- */
@media (max-width: 639px) {
	.toolbar-conf { position: static; backdrop-filter: none; }
	.toolbar-conf .chips { flex-wrap: wrap; overflow: visible; gap: 6px; padding: 8px 16px 0; }
	.toolbar-conf .chips:last-child { padding-bottom: 10px; }
	.toolbar-conf .chip { height: 32px; padding: 0 11px; font-size: 12.5px; }
	.conf-content { padding-bottom: 32px; }
	.conf-content .sticky-actions { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px; box-shadow: 0 -6px 24px rgb(15 23 42 / .14); }
	.conf-content .sticky-actions p { display: none; }
	.conf-content .card { overflow-wrap: anywhere; }
}

/* install app card */
.inst{margin:0 0 16px;padding:14px;border-radius:16px;background:linear-gradient(135deg,#0f172a,#1e3a8a);color:#fff;text-align:right;direction:rtl;box-shadow:0 10px 24px -12px rgba(15,23,42,.7)}
.inst-top{display:flex;gap:12px;align-items:center}
.inst-top img{width:48px;height:48px;border-radius:12px;flex:none;background:#fff}
.inst-top b{display:block;font-size:16px;margin-bottom:2px}
.inst-top span{display:block;font-size:13px;opacity:.85;line-height:1.5}
.inst-btn{display:block;width:100%;margin-top:12px;height:46px;border:0;border-radius:12px;background:#22c55e;color:#fff;font-size:16px;font-weight:800;cursor:pointer;font-family:inherit}
.inst-btn:active{transform:scale(.98)}
.inst-help{margin-top:10px;padding:10px 12px;border-radius:10px;background:rgba(255,255,255,.12);font-size:13.5px;line-height:1.9}

/* whatsapp order add button */
.icon-btn.wa-add{width:auto!important;min-width:0;padding:0 14px;gap:6px;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:14px;white-space:nowrap;border-radius:12px}
.icon-btn.wa-add svg{width:20px;height:20px;flex:none}

/* dup + attempts */
.dup-line{color:#b45309;font-weight:800;font-size:12.5px;margin-top:4px}
.att-line{color:#7c3aed;font-weight:700;font-size:12.5px;margin-top:4px}

/* Folli Care orders */
.card.order.folli { background: #B1D6CE; border-color: #8fc0b5; }

/* Ova-Care orders */
.card.order.ova { background: #EEDBE0; border-color: #dcbcc5; }
