/* Jameel Noori Nastaleeq for Urdu script only (unicode-range): Latin text and digits keep the UI font. */
@font-face {
  font-family: 'Jameel Noori Nastaleeq';
  src: url('../fonts/jameel-noori-nastaleeq.woff') format('woff');
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}

/* ================= Design tokens ================= */
:root {
  --brand: #0b6fd0;
  --brand-2: #0e9fb3;
  --brand-grad: linear-gradient(135deg, #0b6fd0 0%, #0e9fb3 100%);
  --brand-soft: rgba(11, 111, 208, .10);
  --ok: #16a34a; --ok-soft: #dcfce7;
  --bad: #dc2626; --bad-soft: #fee2e2;
  --warn: #d97706; --warn-soft: #fef3c7;
  --radius: 20px; --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 40, 80, .06), 0 1px 3px rgba(15, 40, 80, .07);
  --shadow: 0 6px 20px -6px rgba(15, 40, 80, .16), 0 2px 6px -2px rgba(15, 40, 80, .08);
  --shadow-lg: 0 22px 44px -14px rgba(8, 47, 100, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --app-bg: #f3f8fd; --surface: #fff;
  --bs-primary: #0b6fd0; --bs-primary-rgb: 11, 111, 208;
  --bs-link-color: #0b6fd0; --bs-link-color-rgb: 11, 111, 208;
  --bs-font-sans-serif: 'Jameel Noori Nastaleeq', 'Inter Variable', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', Arial, sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-size: 1.05rem;
  --bs-border-radius: .9rem; --bs-border-radius-lg: 1.1rem;
  --topbar-h: 60px; --bottomnav-h: 72px; --sidebar-w: 260px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
[data-bs-theme="dark"] {
  --app-bg: #0c1420; --surface: #142033;
  --brand-soft: rgba(96, 165, 250, .16);
  --ok-soft: #12351f; --bad-soft: #3b1515; --warn-soft: #3a2a0a;
  --bs-body-bg: #142033; --bs-tertiary-bg: #101a2a; --bs-secondary-bg: #1c2b42; --bs-border-color: #26364f;
  --bs-primary: #5aa9f5; --bs-primary-rgb: 90, 169, 245; --bs-link-color: #7dbbf7;
}
html[data-lang="ur"] { --bs-body-font-size: 1.3rem; font-synthesis: none; }
html[data-lang="ur"] body { line-height: 2; }
html[data-lang="ur"] .btn, html[data-lang="ur"] .form-control, html[data-lang="ur"] .form-select { line-height: 1.9; }
html[data-lang="ur"] .num, html[data-lang="ur"] .money { line-height: 1.35; }

html, body { height: 100%; }
body { -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; background: var(--app-bg); }
button, .btn, a { touch-action: manipulation; }
input[type=number] { -moz-appearance: textfield; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num, .money, input[type=number], input[type=tel] { font-variant-numeric: tabular-nums; }
.rtl-flip { display: inline-block; }
[dir="rtl"] .rtl-flip { transform: scaleX(-1); }
[dir="rtl"] .bi-arrow-left::before { content: "\f138"; }   /* arrow-right */
[dir="rtl"] .bi-chevron-right::before { content: "\f284"; } /* shows chevron-left */
[dir="rtl"] .bi-chevron-left::before { content: "\f285"; }  /* shows chevron-right */

/* Buttons & inputs: big enough for thick fingers */
.btn { font-weight: 600; border-radius: var(--radius-sm); min-height: 48px; padding-inline: 1.1rem; transition: transform .12s var(--ease), box-shadow .2s, background-color .2s; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.btn:active { transform: scale(.96); }
.btn-lg { min-height: 58px; font-size: 1.15rem; border-radius: 18px; }
.btn-sm { min-height: 40px; }
.btn-primary { --bs-btn-bg: #0b6fd0; --bs-btn-border-color: #0b6fd0; --bs-btn-hover-bg: #095cb0; --bs-btn-hover-border-color: #095cb0; --bs-btn-active-bg: #084d93; box-shadow: 0 6px 14px -6px rgba(11, 111, 208, .6); }
.btn-success { box-shadow: 0 6px 14px -6px rgba(22, 163, 74, .6); }
.btn-grad { background: var(--brand-grad); background-size: 160% 160%; border: 0; color: #fff; box-shadow: 0 10px 24px -8px rgba(11, 111, 208, .65); }
.btn-grad:hover, .btn-grad:focus-visible { color: #fff; background-position: 100% 0; }
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: #dde6f1; --bs-btn-hover-bg: #eef4fb; --bs-btn-hover-border-color: #cbd8e8; }
[data-bs-theme="dark"] .btn-light { --bs-btn-bg: var(--bs-secondary-bg); --bs-btn-border-color: var(--bs-border-color); --bs-btn-color: var(--bs-body-color); --bs-btn-hover-bg: #243650; --bs-btn-hover-color: var(--bs-body-color); }
.form-control, .form-select { border-radius: var(--radius-sm); min-height: 52px; font-size: 1.1rem; }
.form-control-lg { min-height: 62px; font-size: 1.4rem; font-weight: 700; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .22rem rgba(11, 111, 208, .18); }
.form-label { font-weight: 700; margin-bottom: .2rem; }
.form-check-input { width: 1.5em; height: 1.5em; }
::selection { background: rgba(11, 111, 208, .22); }

/* ================= Animations ================= */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes drift { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(26px, -18px, 0) scale(1.08); } 100% { transform: translate3d(0, 0, 0) scale(1); } }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-80px); } }
@keyframes wavePage { from { background-position-x: 0; } to { background-position-x: 240px; } }
@keyframes riseDrop { 0% { transform: translateY(0) scale(.5); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-110vh) scale(1); opacity: 0; } }
@keyframes shimmer { from { background-position: -400px 0; } to { background-position: 400px 0; } }
@keyframes shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(2px); } 30%, 50%, 70% { transform: translateX(-4px); } 40%, 60% { transform: translateX(4px); } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(11, 111, 208, .5); } 70% { box-shadow: 0 0 0 14px rgba(11, 111, 208, 0); } 100% { box-shadow: 0 0 0 0 rgba(11, 111, 208, 0); } }
@keyframes checkDraw { to { stroke-dashoffset: 0; } }
@keyframes burst { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.page-enter > * { animation: fadeUp .4s var(--ease) both; }
.page-enter > *:nth-child(2) { animation-delay: .05s; } .page-enter > *:nth-child(3) { animation-delay: .1s; }
.page-enter > *:nth-child(4) { animation-delay: .15s; } .page-enter > *:nth-child(n+5) { animation-delay: .2s; }
.stagger > * { animation: fadeUp .45s var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: .02s; } .stagger > *:nth-child(2) { animation-delay: .06s; } .stagger > *:nth-child(3) { animation-delay: .1s; }
.stagger > *:nth-child(4) { animation-delay: .14s; } .stagger > *:nth-child(5) { animation-delay: .18s; } .stagger > *:nth-child(6) { animation-delay: .22s; }
.stagger > *:nth-child(n+7) { animation-delay: .26s; }
.shake { animation: shake .45s both; }
.float-a { animation: float 5s ease-in-out infinite; } .float-b { animation: float 6.5s ease-in-out -2s infinite; }
.wave { animation: wave 3s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* ================= Splash ================= */
#splash { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--app-bg); z-index: 3000; }
#splash .splash-logo { width: 96px; height: 96px; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); animation: pop .6s var(--ease) both, pulseRing 2s .6s infinite; }
#splash .splash-logo img { width: 100%; height: 100%; }
#splash .splash-name { font-weight: 800; font-size: 1.5rem; animation: fadeUp .5s .15s both; }
#splash .splash-bar { width: 130px; height: 5px; border-radius: 5px; margin-top: 18px; background: linear-gradient(90deg, transparent, var(--brand), transparent) var(--bs-secondary-bg); background-size: 400px 100%; animation: shimmer 1.2s linear infinite; }

/* ================= Login ================= */
.auth { position: relative; min-height: 100vh; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 70px 16px calc(24px + var(--safe-b)); color: #fff; isolation: isolate;
  background: radial-gradient(900px 500px at 15% -10%, #38bdf8 0%, transparent 60%), radial-gradient(800px 600px at 110% 20%, #14b8a6 0%, transparent 55%), linear-gradient(160deg, #0a4fa3, #083b7a); }
.auth-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.auth-bg .blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .45; animation: drift 14s ease-in-out infinite; }
.auth-bg .b1 { width: 300px; height: 300px; background: #7dd3fc; top: -60px; inset-inline-start: -60px; }
.auth-bg .b2 { width: 240px; height: 240px; background: #5eead4; bottom: 10%; inset-inline-end: -40px; animation-delay: -5s; }
.auth-bg .b3 { width: 200px; height: 200px; background: #fff; bottom: -60px; inset-inline-start: 30%; animation-delay: -9s; opacity: .25; }
.auth-bg .drop { position: absolute; bottom: -30px; width: 14px; height: 14px; background: rgba(255, 255, 255, .7); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); animation: riseDrop 11s linear infinite; }
.auth-bg .d1 { left: 12%; animation-delay: 0s; } .auth-bg .d2 { left: 38%; animation-delay: -4s; width: 10px; height: 10px; } .auth-bg .d3 { left: 64%; animation-delay: -7s; } .auth-bg .d4 { left: 86%; animation-delay: -2s; width: 18px; height: 18px; }
.lang-float { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 5; }
.lang-switch { display: inline-flex; align-items: center; gap: .4rem; border: 0; padding: .45rem .9rem; min-height: 42px; border-radius: 999px; font-weight: 700; background: var(--brand-soft); color: var(--brand); white-space: nowrap; }
.lang-float, .auth .lang-switch { background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .3); }
.auth-inner { width: 100%; max-width: 1040px; display: grid; gap: 22px; align-items: center; }
@media (min-width: 992px) { .auth-inner { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.auth-hero { animation: fadeUp .6s var(--ease) both; text-align: center; }
@media (min-width: 992px) { .auth-hero { text-align: start; } }
.auth-hero .hero-art { max-width: 300px; margin: 0 auto 10px; }
@media (min-width: 992px) { .auth-hero .hero-art { margin: 0 0 10px; max-width: 360px; } }
.auth-hero .wave path { animation: none; }
.auth-hero h1 { font-weight: 800; line-height: 1.4; font-size: clamp(1.7rem, 6vw, 2.8rem); margin-bottom: 8px; }
.auth-hero h1 .grad { background: linear-gradient(90deg, #fff, #a5f3fc, #fef08a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead-sm { color: rgba(255, 255, 255, .85); font-size: 1.1rem; max-width: 36rem; margin-inline: auto; }
.feature-chips { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
@media (min-width: 992px) { .feature-chips { justify-content: flex-start; } }
.feature-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .22); font-size: .95rem; }
.auth-card { background: var(--surface); color: var(--bs-body-color); border-radius: 28px; padding: 26px 22px; box-shadow: var(--shadow-lg); animation: fadeUp .6s .1s var(--ease) both; max-width: 440px; width: 100%; margin-inline: auto; }
.auth-card h2 { font-weight: 800; margin-bottom: 0; }
.auth-card .sub { color: var(--bs-secondary-color); margin-bottom: 14px; }
.auth-foot { text-align: center; margin-top: 10px; font-size: .95rem; }
.auth-note { color: var(--bs-secondary-color); }
.field { position: relative; margin-bottom: 14px; }
.field input { width: 100%; height: 62px; border: 2px solid var(--bs-border-color); border-radius: 16px; padding: 22px 48px 6px; background: transparent; color: inherit; font-size: 1.15rem; outline: 0; transition: border-color .2s, box-shadow .2s; }
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 .22rem rgba(11, 111, 208, .16); }
.field label { position: absolute; inset-inline-start: 48px; top: 15px; color: var(--bs-secondary-color); pointer-events: none; transition: all .18s var(--ease); line-height: 1.4; }
.field input:focus + .lead-icon + label, .field input:not(:placeholder-shown) + .lead-icon + label { top: 1px; font-size: .78rem; color: var(--brand); }
.field .lead-icon { position: absolute; inset-inline-start: 16px; top: 19px; font-size: 1.3rem; color: var(--bs-secondary-color); }
.field-action { position: absolute; inset-inline-end: 4px; top: 8px; min-height: 44px; color: var(--bs-secondary-color); }
.btn-login { min-height: 60px; font-size: 1.25rem; border-radius: 18px; }

/* ================= App shell ================= */
#view-app { display: flex; min-height: 100vh; }
#sidebar { width: var(--sidebar-w); position: fixed; inset-block: 0; inset-inline-start: 0; background: var(--surface); border-inline-end: 1px solid var(--bs-border-color); z-index: 100; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 16px; font-weight: 800; font-size: 1.2rem; }
.sidebar-brand .logo { width: 42px; height: 42px; border-radius: 12px; overflow: hidden; } .sidebar-brand .logo img { width: 100%; height: 100%; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
@media (min-width: 992px) { .app-main { margin-inline-start: var(--sidebar-w); } }
.app-topbar { position: sticky; top: 0; z-index: 90; height: var(--topbar-h); display: flex; align-items: center; gap: 8px; padding: 0 12px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--bs-border-color); }
.topbar-title { font-size: 1.25rem; }
.avatar-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brand-grad); color: #fff; font-weight: 800; }
.conn-online, .conn-offline { font-weight: 600; padding: .5em .8em; }
.conn-online { background: var(--ok-soft); color: var(--ok); } .conn-offline { background: var(--warn-soft); color: var(--warn); }
@media (max-width: 420px) { #conn-badge span { display: none; } }
#content { flex: 1; padding: 14px 14px calc(var(--bottomnav-h) + 24px + var(--safe-b)); max-width: 1100px; width: 100%; margin-inline: auto; outline: 0; }
@media (min-width: 992px) { #content { padding-bottom: 40px; } }
.nav-menu .nav-section { padding: 14px 18px 4px; font-size: .85rem; font-weight: 700; color: var(--bs-secondary-color); }
.nav-menu .nav-link { display: flex; align-items: center; gap: 12px; padding: 12px 18px; color: var(--bs-body-color); font-weight: 600; border-radius: 14px; margin: 2px 10px; }
.nav-menu .nav-link i { font-size: 1.3rem; color: var(--brand); }
.nav-menu .nav-link.active { background: var(--brand-soft); color: var(--brand); }
#bottom-nav { position: fixed; inset-inline: 0; bottom: 0; z-index: 95; height: calc(var(--bottomnav-h) + var(--safe-b)); padding-bottom: var(--safe-b); display: flex; background: var(--surface); border-top: 1px solid var(--bs-border-color); box-shadow: 0 -6px 20px -10px rgba(15, 40, 80, .2); }
#bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; color: var(--bs-secondary-color); text-decoration: none; font-weight: 700; font-size: .9rem; line-height: 1.5; position: relative; }
#bottom-nav a i { font-size: 1.55rem; line-height: 1.2; transition: transform .25s var(--ease); }
#bottom-nav a.active { color: var(--brand); } #bottom-nav a.active i { transform: translateY(-3px) scale(1.12); }
#bottom-nav a.active::after { content: ''; position: absolute; top: 0; width: 34px; height: 4px; border-radius: 0 0 6px 6px; background: var(--brand); }
#bottom-nav .nav-sell i { background: var(--brand-grad); color: #fff; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-top: -22px; box-shadow: 0 10px 20px -6px rgba(11, 111, 208, .7); font-size: 1.5rem; }
#bottom-nav .nav-sell.active i { transform: translateY(-2px) scale(1.08); }

/* ================= Common blocks ================= */
.page-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.page-header h1 { font-size: 1.4rem; font-weight: 800; }
.card { border: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--surface); }
.section-title { font-weight: 800; font-size: 1.15rem; margin: 18px 0 8px; display: flex; align-items: center; gap: 8px; }
.section-title i { color: var(--brand); }
.icon-chip { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; flex: none; }
.c-blue { background: #dbeafe; color: #1d4ed8; } .c-green { background: var(--ok-soft); color: var(--ok); } .c-amber { background: var(--warn-soft); color: var(--warn); }
.c-red { background: var(--bad-soft); color: var(--bad); } .c-teal { background: #ccfbf1; color: #0f766e; } .c-pink { background: #fce7f3; color: #be185d; } .c-violet { background: #ede9fe; color: #6d28d9; }
[data-bs-theme="dark"] .c-blue { background: #172a4d; color: #93c5fd; } [data-bs-theme="dark"] .c-teal { background: #0f2f2c; color: #5eead4; } [data-bs-theme="dark"] .c-pink { background: #3b1530; color: #f9a8d4; } [data-bs-theme="dark"] .c-violet { background: #261c47; color: #c4b5fd; }
.money { font-weight: 800; white-space: nowrap; }
.text-ok { color: var(--ok) !important; } .text-bad { color: var(--bad) !important; } .text-warn { color: var(--warn) !important; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 12px; border-radius: 999px; font-size: .9rem; font-weight: 700; background: var(--brand-soft); color: var(--brand); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); } .chip.bad { background: var(--bad-soft); color: var(--bad); } .chip.warn { background: var(--warn-soft); color: var(--warn); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips .pill { flex: none; border: 2px solid var(--bs-border-color); background: var(--surface); color: var(--bs-body-color); border-radius: 999px; padding: 4px 18px; font-weight: 700; min-height: 44px; transition: all .2s; }
.chips .pill.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 14px -6px rgba(11, 111, 208, .7); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 6px; border-radius: 20px; background: var(--bs-secondary-bg); }
.seg button { border: 0; background: transparent; border-radius: 15px; min-height: 52px; font-weight: 800; font-size: 1.15rem; color: var(--bs-secondary-color); display: flex; align-items: center; justify-content: center; gap: 8px; transition: all .25s var(--ease); }
.seg button.active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }
.seg button.active.m i { color: #f59e0b; } .seg button.active.e i { color: #6366f1; }

@media (max-width: 991.98px) { .page-header h1.dup { display: none; } .page-header:not(:has(.btn, a)) { display: none; } }

/* Home */
.hero-card { position: relative; overflow: hidden; border-radius: 28px; padding: 20px 20px 54px; color: #fff; background: var(--brand-grad); box-shadow: var(--shadow-lg); isolation: isolate; }
.hero-card::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 40px; z-index: -1; opacity: .35;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 40'%3E%3Cpath d='M0 20 q30 -20 60 0 t60 0 t60 0 t60 0 v20 h-240z' fill='%23fff'/%3E%3C/svg%3E") repeat-x bottom / 240px 40px; animation: wavePage 6s linear infinite; }
.hero-card .hi { font-size: 1.1rem; opacity: .9; } .hero-card .shop { font-size: 1.6rem; font-weight: 800; line-height: 1.4; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.hero-stats > div { background: rgba(255, 255, 255, .17); border: 1px solid rgba(255, 255, 255, .25); border-radius: 16px; padding: 8px 10px; backdrop-filter: blur(6px); }
.hero-stats .v { font-size: 1.35rem; font-weight: 800; line-height: 1.3; } .hero-stats .l { font-size: .85rem; opacity: .9; line-height: 1.5; }
.hub { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 600px) { .hub { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .hub { grid-template-columns: repeat(4, 1fr); } }
.hub-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 132px; padding: 14px 8px; text-align: center; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-sm); color: var(--bs-body-color); text-decoration: none; font-weight: 800; font-size: 1.15rem; line-height: 1.5; position: relative; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.hub-tile:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--shadow); } .hub-tile:active { transform: scale(.96); }
.hub-tile .icon-chip { width: 64px; height: 64px; font-size: 2rem; border-radius: 20px; }
.hub-tile .sub { font-size: .85rem; font-weight: 600; color: var(--bs-secondary-color); }
.hub-tile .badge-dot { position: absolute; top: 10px; inset-inline-end: 10px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; background: var(--bad); color: #fff; font-size: .85rem; display: grid; place-items: center; animation: pop .5s var(--ease) both; line-height: 1; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .stat-grid.four { grid-template-columns: repeat(4, 1fr); } }
.stat-card { padding: 14px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 2px; }
.stat-card .l { color: var(--bs-secondary-color); font-weight: 600; display: flex; align-items: center; gap: 6px; font-size: .98rem; }
.stat-card .v { font-size: 1.55rem; font-weight: 800; line-height: 1.3; }
.ring { --p: 0; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; flex: none; position: relative;
  background: conic-gradient(var(--ok) calc(var(--p) * 1%), var(--bs-secondary-bg) 0); transition: --p 1s; }
.ring::before { content: ''; position: absolute; inset: 9px; background: var(--surface); border-radius: 50%; }
.ring span { position: relative; font-weight: 800; font-size: 1.15rem; line-height: 1.2; text-align: center; }
.progress-line { height: 12px; border-radius: 6px; background: var(--bs-secondary-bg); overflow: hidden; }
.progress-line > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #22c55e, #16a34a); transform-origin: left; animation: growX .8s var(--ease) both; transition: width .5s var(--ease); }
[dir="rtl"] .progress-line > i { transform-origin: right; }

/* Lists */
.list-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; width: 100%; border: 0; background: transparent; text-align: start; color: inherit; text-decoration: none; border-bottom: 1px solid var(--bs-border-color); min-height: 68px; }
.list-row:last-child { border-bottom: 0; }
a.list-row:hover, button.list-row:hover { background: var(--brand-soft); color: inherit; }
.list-row .grow { flex: 1; min-width: 0; } .list-row .t { font-weight: 700; font-size: 1.1rem; line-height: 1.5; } .list-row .s { color: var(--bs-secondary-color); font-size: .92rem; line-height: 1.5; }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; font-size: 1.1rem; }
.tint-indigo { background: #4f46e5; } .tint-violet { background: #7c3aed; } .tint-green { background: #16a34a; } .tint-amber { background: #d97706; }
.tint-cyan { background: #0891b2; } .tint-pink { background: #db2777; } .tint-red { background: #dc2626; } .tint-slate { background: #475569; }
.empty-state { padding: 38px 16px; text-align: center; } .empty-state .es-icon { font-size: 3.2rem; opacity: .5; animation: float 4s ease-in-out infinite; }
.search-box { position: relative; } .search-box i { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); color: var(--bs-secondary-color); font-size: 1.2rem; }
.search-box input { padding-inline-start: 48px; }

/* Delivery sheet */
.house { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-sm); border: 2px solid transparent; transition: border-color .3s, background .3s, transform .3s var(--ease); position: relative; overflow: hidden; }
.house + .house { margin-top: 10px; }
.house.done { border-color: #86efac; background: color-mix(in srgb, var(--ok-soft) 70%, var(--surface)); }
.house.skip { border-color: #fecaca; background: color-mix(in srgb, var(--bad-soft) 60%, var(--surface)); opacity: .9; }
.house .who { flex: 1; min-width: 0; } .house .nm { font-weight: 800; font-size: 1.2rem; line-height: 1.5; } .house .ad { color: var(--bs-secondary-color); font-size: .9rem; line-height: 1.5; }
.house .qty { font-weight: 800; font-size: 1.6rem; line-height: 1.2; color: var(--brand); border: 0; background: var(--brand-soft); border-radius: 14px; padding: 4px 12px; min-width: 76px; text-align: center; }
.house .qty small { display: block; font-size: .75rem; font-weight: 600; color: var(--bs-secondary-color); line-height: 1.5; }
.house.done .qty { color: var(--ok); background: transparent; }
.house .acts { display: flex; gap: 8px; }
.act { width: 62px; height: 62px; border-radius: 20px; border: 0; display: grid; place-items: center; font-size: 1.9rem; color: #fff; transition: transform .15s var(--ease); }
.act:active { transform: scale(.88); }
.act.yes { background: linear-gradient(135deg, #22c55e, #15803d); box-shadow: 0 8px 16px -6px rgba(22, 163, 74, .7); } .act.no { background: var(--bs-secondary-bg); color: var(--bad); width: 50px; height: 50px; font-size: 1.4rem; align-self: center; }
.act.undo { background: var(--bs-secondary-bg); color: var(--bs-secondary-color); width: 50px; height: 50px; font-size: 1.3rem; }
.house .stamp { position: absolute; inset-inline-start: 44px; top: 4px; width: 26px; height: 26px; }
.tick { width: 34px; height: 34px; } .tick path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: checkDraw .45s .1s ease forwards; }
.house.just { animation: pop .45s var(--ease); }
.confetti { position: fixed; pointer-events: none; z-index: 2500; width: 10px; height: 10px; border-radius: 3px; animation: burst .8s ease-out forwards; }

/* Stepper */
.stepper { display: inline-flex; align-items: center; gap: 10px; direction: ltr; }
.stepper input { order: 2; } .stepper button:first-child { order: 3; } .stepper button:last-child { order: 1; } /* always: minus  value  plus */
.stepper button { width: 54px; height: 54px; border-radius: 18px; border: 0; background: var(--brand-soft); color: var(--brand); font-size: 1.7rem; font-weight: 800; display: grid; place-items: center; }
.stepper button:active { transform: scale(.9); }
.stepper input { width: 96px; text-align: center; font-size: 1.6rem; font-weight: 800; border: 2px solid var(--bs-border-color); border-radius: 16px; height: 54px; background: transparent; color: inherit; }
.quick-qty { display: flex; gap: 8px; flex-wrap: wrap; } .quick-qty .btn { min-width: 64px; }

/* Customer detail / calendar */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal .dow { text-align: center; font-size: .72rem; line-height: 1.6; color: var(--bs-secondary-color); font-weight: 700; }
.cal .day { aspect-ratio: 1; border-radius: 12px; background: var(--bs-secondary-bg); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; font-size: .95rem; line-height: 1.1; border: 2px solid transparent; position: relative; padding: 0; color: inherit; }
.cal .day.blank { background: transparent; }
.cal .day.has { background: var(--ok-soft); } .cal .day.skip { background: var(--bad-soft); } .cal .day.today { border-color: var(--brand); }
.cal .day.billed::after { content: ''; position: absolute; bottom: 4px; width: 14px; height: 3px; border-radius: 2px; background: var(--brand); }
.cal .day small { font-size: .65rem; font-weight: 600; opacity: .8; }
.bal-box { border-radius: 24px; padding: 18px; color: #fff; background: var(--brand-grad); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.bal-box.due { background: linear-gradient(135deg, #f59e0b, #dc2626); } .bal-box.clear { background: linear-gradient(135deg, #22c55e, #0f766e); }
.bal-box .big { font-size: 2.2rem; font-weight: 800; line-height: 1.3; }
.bal-box::after { content: ''; position: absolute; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .12); inset-inline-end: -40px; top: -60px; }
.act-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.act-row .btn { min-height: 62px; font-size: 1.1rem; flex-direction: column; gap: 0; }
.btn-wa { --bs-btn-bg: #25d366; --bs-btn-border-color: #25d366; --bs-btn-color: #fff; --bs-btn-hover-bg: #1ebd5a; --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: #1ebd5a; }

/* Shop counter */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 600px) { .product-grid { grid-template-columns: repeat(3, 1fr); } } @media (min-width: 992px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
.product-tile { position: relative; border: 2px solid transparent; background: var(--surface); border-radius: 22px; padding: 12px 8px; min-height: 124px; text-align: center; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: inherit; transition: transform .15s var(--ease), border-color .2s; }
.product-tile:active { transform: scale(.95); } .product-tile.in { border-color: var(--brand); }
.product-tile .em { font-size: 2.4rem; line-height: 1.2; } .product-tile .n { font-weight: 800; font-size: 1.25rem; line-height: 1.5; }
html[data-lang="ur"] .product-tile .n { font-size: 1.45rem; }
html[data-lang="ur"] .house .nm { font-size: 1.4rem; }
html[data-lang="ur"] .list-row .t { font-size: 1.3rem; }
html[data-lang="ur"] .list-row .s, html[data-lang="ur"] .house .ad { font-size: 1.05rem; } .product-tile .p { color: var(--brand); font-weight: 800; }
.product-tile .cnt { position: absolute; top: 6px; inset-inline-end: 6px; min-width: 32px; height: 32px; border-radius: 16px; padding: 0 8px; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; animation: pop .35s var(--ease); line-height: 1; }
.cart-bar { position: fixed; inset-inline: 0; bottom: calc(var(--bottomnav-h) + var(--safe-b)); z-index: 90; padding: 10px 14px; background: var(--surface); border-top: 1px solid var(--bs-border-color); box-shadow: 0 -10px 24px -12px rgba(15, 40, 80, .3); display: flex; align-items: center; gap: 12px; animation: fadeUp .3s var(--ease); }
@media (min-width: 992px) { .cart-bar { bottom: 0; inset-inline-start: var(--sidebar-w); } }
.cart-bar .tot { flex: 1; line-height: 1.3; } .cart-bar .tot .v { font-size: 1.8rem; font-weight: 800; color: var(--brand); }
.cart-line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--bs-border-color); }
.pay-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pay-pick button { border: 2px solid var(--bs-border-color); background: var(--surface); border-radius: 20px; min-height: 84px; font-weight: 800; font-size: 1.15rem; display: flex; flex-direction: column; align-items: center; justify-content: center; color: inherit; line-height: 1.5; }
.pay-pick button i { font-size: 1.8rem; } .pay-pick button.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.checkout-total { font-size: 2.6rem; font-weight: 800; color: var(--brand); text-align: center; line-height: 1.3; }
.done-anim { display: grid; place-items: center; padding: 10px 0; } .done-anim svg { width: 110px; height: 110px; animation: pop .5s var(--ease); }
.done-anim circle { fill: var(--ok); } .done-anim path { stroke: #fff; stroke-width: 7; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: checkDraw .5s .25s ease forwards; }

/* Bills table-ish rows */
.bill-row .amt { text-align: end; line-height: 1.4; } .bill-row .amt .v { font-weight: 800; font-size: 1.15rem; }

/* Bars (profit) */
.bar-row { display: flex; align-items: center; gap: 10px; margin: 10px 0; } .bar-row .lb { width: 38%; font-weight: 700; line-height: 1.5; } .bar-row .tr { flex: 1; height: 16px; border-radius: 8px; background: var(--bs-secondary-bg); overflow: hidden; }
.bar-row .tr i { display: block; height: 100%; border-radius: 8px; transform-origin: left; animation: growX .9s var(--ease) both; } [dir="rtl"] .bar-row .tr i { transform-origin: right; }
.profit-big { font-size: 2.6rem; font-weight: 800; line-height: 1.3; }

/* Skeleton / loaders / toast / modal */
.skel { background: linear-gradient(90deg, var(--bs-secondary-bg) 25%, var(--bs-tertiary-bg) 50%, var(--bs-secondary-bg) 75%); background-size: 800px 100%; animation: shimmer 1.4s linear infinite; border-radius: 16px; }
.skeleton { display: flex; flex-direction: column; gap: 12px; }
#loading-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); display: grid; place-items: center; z-index: 2600; }
.toast { border-radius: 16px; font-size: 1.1rem; font-weight: 600; box-shadow: var(--shadow-lg); } .toast-container { z-index: 2700; }
.modal-content { border: 0; border-radius: 26px; box-shadow: var(--shadow-lg); } .modal-header, .modal-footer { border: 0; }
.modal-title { font-weight: 800; } .modal-footer .btn { flex: 1; min-height: 54px; }
.modal-dialog-centered .modal-content { animation: pop .3s var(--ease); }
@media (max-width: 575.98px) { .modal-fullscreen-sm-down .modal-content { border-radius: 0; } }
.dropdown-menu { border: 0; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 8px; } .dropdown-item { border-radius: 12px; padding: 10px 14px; font-weight: 600; }
.offcanvas { border: 0; width: 290px; }
.help-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 20px; background: var(--warn-soft); color: var(--bs-body-color); }
.alert { border-radius: 16px; border: 0; }

/* Print */
#print-area { display: none; }
@media print {
  body > *:not(#print-area) { display: none !important; }
  body { background: #fff !important; }
  #print-area { display: block !important; color: #000; }
}
.receipt { font-family: 'Jameel Noori Nastaleeq', 'Courier New', monospace; color: #000; background: #fff; font-size: 12px; line-height: 1.3; margin: 0 auto; direction: ltr; }
.receipt.w58 { width: 48mm; } .receipt.w80 { width: 72mm; }
.receipt .c { text-align: center; } .receipt .r { text-align: right; } .receipt .b { font-weight: bold; } .receipt .big { font-size: 15px; }
.receipt .ur { font-size: 1.6em; line-height: 1.7; unicode-bidi: plaintext; } .receipt .c .ur, .receipt .r .ur { display: inline-block; }
.receipt hr { border: 0; border-top: 1px dashed #000; margin: 4px 0; opacity: 1; }
.receipt table { width: 100%; border-collapse: collapse; } .receipt td { vertical-align: top; padding: 0; }
.receipt-preview { background: #fff; padding: 12px 6px; border-radius: 8px; border: 1px solid var(--bs-border-color); overflow-x: auto; color: #000; }
.print-report { color: #000; font-size: 12px; } .print-report h2 { font-size: 18px; margin: 0 0 4px; }
.print-report table { width: 100%; border-collapse: collapse; } .print-report th, .print-report td { border: 1px solid #999; padding: 3px 6px; } .print-report td.num, .print-report th.num { text-align: right; }
