/* Chargini B2B app (fournisseurs & shops) — mobile-first, dark + green, LTR/RTL. */
:root {
    --bg: #070c0a;
    --bg-glow: rgba(34, 197, 94, .14);
    --surface: #101815;
    --surface-2: #16201c;
    --surface-3: #1c2823;
    --border: rgba(74, 222, 128, .14);
    --border-strong: rgba(74, 222, 128, .38);
    --primary: #22c55e;
    --primary-2: #16a34a;
    --primary-soft: rgba(34, 197, 94, .14);
    --text: #f2f6f4;
    --muted: #8e9f97;
    --danger: #f05252;
    --danger-soft: rgba(240, 82, 82, .14);
    --warning: #f5b942;
    --warning-soft: rgba(245, 185, 66, .14);
    --info: #3b9cf5;
    --radius: 16px;
    --radius-sm: 12px;
    --nav-h: 68px;
    --font: 'Cairo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font);
    background: var(--bg);
    background-image:
        radial-gradient(60rem 30rem at 110% -10%, var(--bg-glow), transparent 60%),
        radial-gradient(40rem 30rem at -20% 110%, rgba(34, 197, 94, .08), transparent 60%);
    background-attachment: fixed;
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; }

/* ---------- App shell ---------- */
.app {
    max-width: 560px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 0 16px calc(var(--nav-h) + 28px);
}
.app-header {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 0;
    background: linear-gradient(var(--bg) 70%, transparent);
}
.brand { font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; direction: ltr; }
.brand span { color: var(--primary); }
.icon-btn {
    width: 40px; height: 40px; border-radius: 12px;
    display: inline-grid; place-items: center;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text); position: relative; cursor: pointer;
}
.icon-btn .dot { position: absolute; top: 8px; inset-inline-end: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.page-title { display: flex; align-items: center; gap: 10px; margin: 6px 0 4px; font-size: 1.35rem; font-weight: 800; }
.page-title i { color: var(--primary); }
.page-sub { color: var(--muted); margin: 0 0 16px; font-size: .92rem; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* ---------- Bottom navigation ---------- */
.bottom-nav {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 560px; height: var(--nav-h); z-index: 30;
    display: grid; grid-template-columns: repeat(5, 1fr);
    background: rgba(12, 18, 16, .96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--muted); font-size: .72rem; font-weight: 600; position: relative;
}
.bottom-nav a i { font-size: 1.15rem; }
.bottom-nav a.active { color: var(--primary); }
.bottom-nav a.active::before {
    content: ''; position: absolute; top: 0; width: 34px; height: 3px; border-radius: 0 0 3px 3px; background: var(--primary);
}
.bottom-nav .badge-dot {
    position: absolute; top: 9px; margin-inline-start: 22px; min-width: 17px; height: 17px; padding: 0 5px;
    border-radius: 9px; background: var(--warning); color: #111; font-size: .65rem; display: grid; place-items: center;
}

/* ---------- Cards ---------- */
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px; margin-bottom: 14px;
}
.card-title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; font-size: 1rem; font-weight: 700; }
.card-title a { color: var(--primary); font-size: .82rem; font-weight: 600; }

.wallet-card {
    position: relative; overflow: hidden;
    border-radius: 20px; padding: 20px;
    background: linear-gradient(135deg, #1fb457 0%, #0f7a3a 55%, #0b4f27 100%);
    border: 1px solid rgba(134, 239, 172, .35);
    box-shadow: 0 18px 40px -18px rgba(34, 197, 94, .55);
    margin-bottom: 14px;
}
.wallet-card::after {
    content: ''; position: absolute; inset-inline-end: -40px; top: -40px; width: 170px; height: 170px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 70%);
}
.wallet-card .label { opacity: .9; font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.wallet-card .amount { font-size: 2.15rem; font-weight: 800; margin-top: 4px; direction: ltr; text-align: start; }
.wallet-card .amount small { font-size: .95rem; font-weight: 700; opacity: .9; }
.wallet-card .wallet-icon { position: absolute; inset-inline-end: 18px; bottom: 16px; font-size: 2.4rem; opacity: .35; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.stat {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.stat .k { color: var(--muted); font-size: .8rem; }
.stat .v { font-weight: 800; font-size: 1.05rem; direction: ltr; }
.stat .v.warning { color: var(--warning); }
.stat .v.success { color: var(--primary); }
.stat .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--primary); flex-shrink: 0; }
.stat .ic.warning { color: var(--warning); }

/* ---------- Quick actions ---------- */
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.action {
    display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
    padding: 14px 6px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border);
    font-size: .82rem; font-weight: 600; cursor: pointer; color: var(--text);
}
.action i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 1rem; background: var(--surface-3); color: var(--primary); }
.action.primary { background: var(--primary-soft); border-color: var(--border-strong); }
.action.primary i { background: var(--primary); color: #04210f; }
.action.danger i { color: var(--danger); background: var(--danger-soft); }

/* ---------- Lists ---------- */
.list { display: flex; flex-direction: column; }
.list-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.list-item:last-child { border-bottom: 0; }
.list-item .avatar {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
    background: var(--surface-3); color: var(--primary); font-weight: 800;
}
.list-item .avatar.in { background: var(--primary-soft); color: var(--primary); }
.list-item .avatar.out { background: var(--danger-soft); color: var(--danger); }
.list-item .avatar.wait { background: var(--warning-soft); color: var(--warning); }
.list-item .body { flex: 1; min-width: 0; }
.list-item .title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .sub { color: var(--muted); font-size: .8rem; }
.list-item .end { text-align: end; flex-shrink: 0; }
.amount-in { color: var(--primary); font-weight: 800; direction: ltr; display: inline-block; }
.amount-out { color: var(--danger); font-weight: 800; direction: ltr; display: inline-block; }
.amount { direction: ltr; display: inline-block; }
.chev { color: var(--muted); }
[dir="rtl"] .chev { transform: scaleX(-1); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.badge.success { background: var(--primary-soft); color: var(--primary); }
.badge.warning { background: var(--warning-soft); color: var(--warning); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.muted { background: var(--surface-3); color: var(--muted); }

/* ---------- Forms ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: .88rem; font-weight: 700; }
.input, select.input, textarea.input {
    width: 100%; padding: 13px 14px; border-radius: var(--radius-sm);
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
    font-family: inherit; font-size: 1rem; outline: none;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.input-group { position: relative; }
.input-group .suffix { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.input-group .input { padding-inline-end: 52px; }
.help { color: var(--muted); font-size: .8rem; margin-top: 5px; }
.error { color: var(--danger); font-size: .82rem; margin-top: 5px; }

.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.chip {
    padding: 14px 6px; border-radius: var(--radius-sm); text-align: center; cursor: pointer;
    background: var(--surface-2); border: 1px solid var(--border); font-weight: 800; font-size: 1.15rem;
    color: var(--text); font-family: inherit;
}
.chip small { display: block; color: var(--muted); font-size: .75rem; font-weight: 600; }
.chip.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.chip.active small { color: var(--primary); }

.method {
    display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 10px; cursor: pointer;
    border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border);
}
.method input { display: none; }
.method .logo { width: 52px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: #1d4ed8; color: #fff; font-weight: 800; overflow: hidden; flex-shrink: 0; }
.method .logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.method .body { flex: 1; }
.method .name { font-weight: 800; }
.method .sub { color: var(--muted); font-size: .8rem; }
.method .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--muted); display: grid; place-items: center; }
.method.active { border-color: var(--primary); }
.method.active .radio { border-color: var(--primary); }
.method.active .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.method-details { display: none; margin: -4px 0 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-3); font-size: .88rem; }
.method-details.show { display: block; }
.method-details .pay-to { font-weight: 800; direction: ltr; display: inline-block; }

.upload {
    display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer;
    padding: 22px 14px; border-radius: var(--radius-sm); border: 1.5px dashed var(--border-strong); background: var(--surface-2);
}
.upload i { font-size: 2rem; color: var(--muted); }
.upload .t { font-weight: 700; }
.upload .s { color: var(--muted); font-size: .8rem; }
.upload input { display: none; }
.upload.has-file { border-style: solid; border-color: var(--primary); }
.upload.has-file i { color: var(--primary); }

.note {
    display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm);
    background: rgba(59, 156, 245, .1); border: 1px solid rgba(59, 156, 245, .25); font-size: .86rem; margin-bottom: 14px;
}
.note i { color: var(--info); margin-top: 3px; }
.note.success { background: var(--primary-soft); border-color: var(--border-strong); }
.note.success i { color: var(--primary); }
.note.warning { background: var(--warning-soft); border-color: rgba(245, 185, 66, .35); }
.note.warning i { color: var(--warning); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
    font-weight: 800; font-size: 1rem; cursor: pointer; color: var(--text); background: var(--surface-2);
}
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(180deg, #34d36f, #1fae55); color: #03210e; box-shadow: 0 10px 24px -12px rgba(34, 197, 94, .8); }
.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--primary); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(240, 82, 82, .3); }
.btn-sm { padding: 8px 12px; font-size: .85rem; border-radius: 10px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

/* ---------- Segmented tabs ---------- */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin-bottom: 14px; }
.seg a, .seg button {
    padding: 10px 6px; border-radius: var(--radius-sm); text-align: center; font-weight: 700; font-size: .88rem;
    background: var(--surface); border: 1px solid var(--border); color: var(--muted); cursor: pointer;
}
.seg .active { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }

/* ---------- Price rows ---------- */
.price-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.price-row:last-child { border-bottom: 0; }
.price-row .name { font-weight: 800; }
.price-row .meta { color: var(--muted); font-size: .78rem; }
.price-row .meta b { color: var(--text); direction: ltr; display: inline-block; }
.price-row form { display: flex; gap: 6px; align-items: center; }
.price-row .input { width: 104px; padding: 9px 10px; font-size: .95rem; text-align: center; }

/* ---------- Credentials box ---------- */
.cred {
    padding: 14px; border-radius: var(--radius-sm); margin-bottom: 14px;
    background: var(--warning-soft); border: 1px solid rgba(245, 185, 66, .35);
}
.cred .row { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; }
.cred code { font-size: 1.05rem; font-weight: 800; color: var(--text); direction: ltr; }

/* ---------- Sheet (bottom modal) ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 40; display: none; }
.sheet {
    position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 100%); transition: transform .22s ease;
    width: 100%; max-width: 560px; z-index: 41; max-height: 88vh; overflow-y: auto;
    background: var(--surface); border-top-left-radius: 22px; border-top-right-radius: 22px;
    border: 1px solid var(--border); padding: 10px 16px 24px;
}
.sheet::before { content: ''; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--surface-3); margin: 4px auto 14px; }
.sheet.open { transform: translate(-50%, 0); }
.sheet-backdrop.open { display: block; }
.sheet h3 { margin: 0 0 14px; font-size: 1.1rem; }

/* ---------- Misc ---------- */
.empty { text-align: center; color: var(--muted); padding: 26px 10px; }
.empty i { font-size: 2rem; display: block; margin-bottom: 8px; opacity: .6; }
.hello { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; }
.hello .avatar { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 1.2rem; }
.hello .hi { color: var(--muted); font-size: .85rem; }
.hello .name { font-weight: 800; font-size: 1.1rem; }
.flash { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.flash.success { background: var(--primary-soft); color: var(--primary); border: 1px solid var(--border-strong); }
.flash.error { background: var(--danger-soft); color: var(--danger); border: 1px solid rgba(240, 82, 82, .3); }
.flash.warning { background: var(--warning-soft); color: var(--warning); border: 1px solid rgba(245, 185, 66, .35); }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 700; text-align: end; }
.pagination-wrap { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.pagination-wrap a, .pagination-wrap span { padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: .85rem; }
.pagination-wrap span { color: var(--muted); }
.lang-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lang-switch button { padding: 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-weight: 800; font-size: 1rem; cursor: pointer; }
.lang-switch button.active { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.menu-link { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; color: var(--text); font-size: 1rem; font-weight: 600; cursor: pointer; text-align: start; }
.menu-link:last-child { border-bottom: 0; }
.menu-link i.lead { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--primary); }
.menu-link.danger { color: var(--danger); }
.menu-link.danger i.lead { color: var(--danger); background: var(--danger-soft); }
.menu-link span { flex: 1; }

@media (min-width: 600px) {
    .app { padding-top: 10px; }
}

/* ---------- Shop app (PDF §3) ---------- */
.service-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.service-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px 10px;
    border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border-strong); font-weight: 800;
}
.service-tile i { font-size: 1.6rem; color: var(--primary); }
.service-tile small { color: var(--muted); font-weight: 600; font-size: .75rem; }

.operators { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.operator {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px; text-align: center;
    border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; color: var(--text);
}
.operator .op-logo { width: 54px; height: 54px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: #fff; }
.operator .op-logo img { width: 100%; height: 100%; object-fit: contain; }
.operator .op-name { font-weight: 800; font-size: .85rem; }
.operator .op-sub { color: var(--muted); font-size: .72rem; }
.operator input { display: none; }
.operator.active, .operator:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.operator .check { position: absolute; top: 6px; inset-inline-end: 6px; width: 20px; height: 20px; border-radius: 50%; display: none; place-items: center; background: var(--primary); color: #03210e; font-size: .65rem; }
.operator:has(input:checked) .check, .operator.active .check { display: grid; }

.op-badge { width: 42px; height: 42px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: #fff; flex-shrink: 0; }
.op-badge img { width: 100%; height: 100%; object-fit: contain; }

.phone-field { position: relative; }
.phone-field .input { font-size: 1.25rem; font-weight: 800; letter-spacing: .06em; direction: ltr; text-align: start; padding-inline-start: 50px; }
[dir="rtl"] .phone-field .input { text-align: right; }
.phone-field .lead { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.1rem; }

.package {
    display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px; margin-bottom: 10px; cursor: pointer;
    border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border);
}
.package input { display: none; }
.package:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.package .gb { font-size: 1.25rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.package .gb i { color: var(--primary); font-size: 1rem; }
.package .days { color: var(--muted); font-size: .8rem; }
.package .prices { display: flex; gap: 14px; text-align: center; }
.package .prices .k { color: var(--muted); font-size: .7rem; }
.package .prices .v { font-weight: 800; font-size: .92rem; direction: ltr; }
.package .prices .v.sell { color: var(--primary); }

.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.summary-row:last-child { border-bottom: 0; }
.summary-row .k { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.summary-row .v { font-weight: 800; text-align: end; display: flex; align-items: center; gap: 8px; }
.profit-box {
    display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 14px; border-radius: var(--radius-sm);
    background: var(--primary-soft); border: 1px solid var(--border-strong); color: var(--primary); font-weight: 800; font-size: 1.05rem;
}
.pay-wallet { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius-sm); border: 1px solid var(--primary); background: var(--primary-soft); }
.pay-wallet i.lead { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary); color: #03210e; }
.pay-wallet .t { font-weight: 800; }
.pay-wallet .s { color: var(--muted); font-size: .8rem; }

.result { text-align: center; padding: 22px 12px 10px; }
.result .badge-ic {
    width: 86px; height: 86px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; font-size: 2.4rem;
    background: var(--primary); color: #03210e; box-shadow: 0 0 0 10px var(--primary-soft), 0 18px 40px -12px rgba(34,197,94,.7);
}
.result.failed .badge-ic { background: var(--danger); color: #fff; box-shadow: 0 0 0 10px var(--danger-soft); }
.result.progress .badge-ic { background: var(--surface-3); color: var(--warning); box-shadow: 0 0 0 10px var(--warning-soft); }
.result h2 { margin: 0 0 4px; font-size: 1.5rem; }
.result.success h2 { color: var(--primary); }
.result.failed h2 { color: var(--danger); }
.result p { color: var(--muted); margin: 0; }
.spin { animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.confetti { position: relative; }
.confetti::before, .confetti::after { content: ''; position: absolute; width: 8px; height: 8px; border-radius: 2px; }
.confetti::before { background: var(--warning); top: 6px; inset-inline-start: 26%; transform: rotate(25deg); }
.confetti::after { background: var(--primary); top: 30px; inset-inline-end: 24%; transform: rotate(-20deg); }

.receipt { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 16px; margin-bottom: 14px; }
.receipt .summary-row .v { direction: ltr; }
[dir="rtl"] .receipt .summary-row .v { direction: rtl; }
.status-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.status-chip.in_progress { background: var(--warning-soft); color: var(--warning); }
.status-chip.completed { background: var(--primary-soft); color: var(--primary); }
.status-chip.failed { background: var(--danger-soft); color: var(--danger); }
.bottom-nav.four { grid-template-columns: repeat(4, 1fr); }

/* ---------- Live updates ---------- */
@keyframes liveGlow { 0% { text-shadow: 0 0 0 rgba(34,197,94,0); transform: scale(1); } 30% { text-shadow: 0 0 18px rgba(34,197,94,.9); transform: scale(1.06); } 100% { text-shadow: 0 0 0 rgba(34,197,94,0); transform: scale(1); } }
.live-changed { animation: liveGlow 1.4s ease-out; display: inline-block; }
@media (prefers-reduced-motion: reduce) { .live-changed { animation: none; } }

/* ---------- Operator wallets (one wallet per operator: Ooredoo / Orange / Telecom) ---------- */
.op-mini { width: 24px; height: 24px; border-radius: 7px; overflow: hidden; display: grid; place-items: center; background: #fff; flex-shrink: 0; font-size: .6rem; }
.op-mini img { width: 100%; height: 100%; object-fit: contain; }
.op-wallets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.op-wallet {
    position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 9px; min-width: 0;
    border-radius: 14px; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .2);
    color: #fff; text-decoration: none; box-shadow: inset 0 3px 0 var(--op, #22c55e); transition: transform .15s, background .15s;
}
a.op-wallet:hover { transform: translateY(-1px); background: rgba(255, 255, 255, .2); }
.op-wallet .op-top { display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; min-width: 0; }
.op-wallet .op-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-wallet .op-amt { font-weight: 800; font-size: 1.02rem; direction: ltr; text-align: start; white-space: nowrap; letter-spacing: -.01em; }
.op-wallet .op-amt small { font-size: .62rem; font-weight: 700; opacity: .85; }
.op-wallet .op-held { font-size: .68rem; opacity: .85; direction: ltr; text-align: start; }
.op-wallets.on-card .op-wallet { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.op-wallets.on-card .op-wallet.is-active { border-color: var(--op); background: color-mix(in srgb, var(--op) 9%, var(--surface-2)); }
.op-wallets.on-card .op-held { color: var(--warning); opacity: 1; }
.wallet-card .op-wallets { margin-bottom: -2px; }
.wallet-card .total-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
@media (max-width: 360px) { .op-wallet { padding: 9px 7px 8px; } .op-wallet .op-amt { font-size: .9rem; } }

.op-amounts { display: flex; flex-direction: column; gap: 10px; }
.op-amount { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface-2); box-shadow: inset 3px 0 0 var(--op); transition: border-color .15s; }
[dir="rtl"] .op-amount { box-shadow: inset -3px 0 0 var(--op); }
.op-amount.has-value { border-color: var(--op); }
.op-amount-head { display: flex; align-items: center; gap: 10px; }
.op-amount-head .op-mini { width: 32px; height: 32px; border-radius: 9px; }
.op-amount-head .op-name { flex: 1; font-weight: 800; min-width: 0; line-height: 1.25; }
.op-amount-head .op-name small { display: block; color: var(--muted); font-weight: 600; font-size: .74rem; }
.op-amount-head .op-input { width: 132px; flex-shrink: 0; direction: ltr; }
.op-amount-head .op-input .input { padding-top: 10px; padding-bottom: 10px; font-weight: 800; direction: ltr; text-align: start; }
.chips.mini { margin: 8px 0 0; gap: 6px; }
.chips.mini .chip { padding: 6px 4px; font-size: .85rem; }
.op-total { display: flex; justify-content: space-between; align-items: center; padding: 10px 4px 0; border-top: 1px dashed var(--border); font-weight: 700; }
.op-total b { font-size: 1.1rem; direction: ltr; }
.op-tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 999px; font-size: .68rem; font-weight: 700;
    color: var(--op); background: color-mix(in srgb, var(--op) 12%, transparent); vertical-align: middle; }
.req-lines { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
