/* RDN Store Panel — المزيد وولاء العملاء */

/* ─── مربعات المزيد ─── */
.rsp-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .rsp-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.rsp-tile {
	--tone: var(--red); --tone-50: var(--red-50);
	position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
	min-height: 150px; padding: 16px; text-align: right;
	background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
	transition: transform .15s, box-shadow .15s;
}
.rsp-tile:hover { transform: translateY(-2px); }
.rsp-tile-amber { --tone: #C98A00; --tone-50: var(--amber-50); }
.rsp-tile-green { --tone: var(--green); --tone-50: var(--green-50); }
.rsp-tile-ink { --tone: var(--ink-2); --tone-50: var(--line); }
.rsp-tile-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--tone-50); color: var(--tone); margin-bottom: 8px; }
.rsp-tile-icon svg { width: 28px; height: 28px; }
.rsp-tile b { font-size: 16px; font-weight: 800; }
.rsp-tile small { font-size: 13px; color: var(--muted); line-height: 1.5; }
.rsp-tile .rsp-soon, .rsp-tile-lock { position: absolute; top: 14px; left: 14px; font-style: normal; }
.rsp-tile-lock { font-size: 10px; font-weight: 700; color: var(--muted); background: var(--line); border-radius: 99px; padding: 0 8px; line-height: 18px; }
.rsp-tile.is-off .rsp-tile-icon { filter: grayscale(.6); opacity: .7; }

/* ─── رأس الولاء ─── */
.rsp-loy-head { align-items: center; }
.rsp-loy-title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rsp-loy-title .rsp-icon-btn { flex: none; }
.rsp-loy-actions { display: flex; align-items: center; gap: 8px; }
.rsp-loy-actions .rsp-tool { width: 46px; height: 46px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }

.rsp-loy-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.rsp-loy-stats div { background: #fff; border-radius: 16px; padding: 12px 8px; text-align: center; border: 1px solid var(--line); }
.rsp-loy-stats b { display: block; font-size: 24px; font-weight: 800; line-height: 1.2; }
.rsp-loy-stats span { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.rsp-loy-stats .is-ready { background: var(--amber-50); border-color: #FFE29A; }
.rsp-loy-stats .is-ready b { color: var(--amber-800); }
.rsp-loy-tabs { margin-bottom: 14px; }

/* ─── مربعا العرض: اشترِ ← واحصل على ─── */
.rsp-offer { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 6px; }
.rsp-offer-box {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
	padding: 12px 8px 14px; border-radius: 16px; border: 2px solid var(--line-2); background: #fff; min-width: 0;
}
.rsp-offer-box.is-get { border-color: var(--red); background: var(--red-50); }
.rsp-offer-label { font-size: 12.5px; font-weight: 800; color: var(--muted); }
.rsp-offer-box.is-get .rsp-offer-label { color: var(--red-700); }
.rsp-offer-img { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; overflow: hidden; background: var(--cream); color: var(--ink-2); }
.rsp-offer-box.is-get .rsp-offer-img { background: #fff; color: var(--red); }
.rsp-offer-img img { width: 100%; height: 100%; object-fit: cover; }
.rsp-offer-img svg { width: 28px; height: 28px; }
.rsp-offer-qty { font-size: 30px; font-weight: 800; line-height: 1; display: inline-flex; align-items: baseline; gap: 2px; }
.rsp-offer-qty small { font-size: 16px; color: var(--muted); }
.rsp-offer-name { font-size: 14px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.rsp-offer-deal { font-style: normal; font-size: 13px; font-weight: 800; color: #fff; background: var(--red); border-radius: 99px; padding: 2px 10px; margin-top: 2px; }
.rsp-offer-arrow { align-self: center; font-size: 22px; font-weight: 800; color: var(--red); }

/* ─── قائمة العروض ─── */
.rsp-loy-rules { display: grid; gap: 12px; }
@media (min-width: 900px) { .rsp-loy-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.rsp-loy-rule { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.rsp-loy-rule header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.rsp-loy-rule h3 { font-size: 15.5px; font-weight: 800; line-height: 1.4; }
.rsp-loy-rule footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.rsp-loy-rule footer .rsp-btn { flex: none; min-height: 40px; padding: 0 16px; }
.rsp-loy-rule.is-off .rsp-offer { opacity: .5; filter: grayscale(.7); }
.rsp-loy-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }

/* ─── العملاء ─── */
.rsp-loy-customers { display: grid; gap: 10px; }
@media (min-width: 900px) { .rsp-loy-customers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.rsp-loy-customer { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: grid; gap: 10px; align-content: start; }
.rsp-loy-customer header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.rsp-loy-customer header b { display: block; font-size: 16px; font-weight: 800; }
.rsp-loy-customer header a { font-size: 14px; color: var(--muted); font-weight: 700; }
.rsp-loy-reward { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--amber-50); border: 2px dashed #F2C14E; }
.rsp-loy-reward > div { flex: 1; min-width: 0; }
.rsp-loy-reward b { display: block; font-size: 14.5px; font-weight: 800; }
.rsp-loy-reward small { display: inline-block; font-size: 12px; color: var(--amber-800); margin-left: 8px; }
.rsp-loy-reward .rsp-btn { flex: none; min-height: 40px; padding: 0 12px; font-size: 14px; }
.rsp-loy-reward-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--amber-800); flex: none; }
.rsp-loy-reward-icon svg { width: 22px; height: 22px; }
.rsp-loy-progress-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.rsp-loy-progress small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.rsp-loy-stamps { display: flex; flex-wrap: wrap; gap: 6px; }
.rsp-loy-stamps i { width: 22px; height: 22px; border-radius: 50%; border: 2px dashed var(--line-2); }
.rsp-loy-stamps i.is-on { border: 0; background: var(--red); box-shadow: inset 0 0 0 4px var(--red-50); }
.rsp-loy-bar { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.rsp-loy-bar span { display: block; height: 100%; background: var(--red); border-radius: 99px; }

/* ─── محرر العرض ─── */
#rsp-loy-preview { position: sticky; top: -14px; z-index: 2; margin: -14px -14px 12px; padding: 12px 14px; background: var(--cream); border-bottom: 1px solid var(--line); }
.rsp-loy-preview-hint { text-align: center; margin-bottom: 8px; font-weight: 700; }
#rsp-loy-preview .rsp-offer-img { width: 44px; height: 44px; }
#rsp-loy-preview .rsp-offer-qty { font-size: 24px; }
.rsp-seg { display: flex; gap: 6px; padding: 4px; margin-bottom: 12px; border-radius: 14px; background: var(--cream); border: 1px solid var(--line); }
.rsp-seg button { flex: 1; min-height: 40px; border-radius: 10px; font-weight: 800; font-size: 14px; color: var(--ink-2); }
.rsp-seg button.is-active { background: #fff; color: var(--red); box-shadow: 0 1px 4px rgba(70, 35, 10, .12); }
.rsp-loy-row { grid-template-columns: minmax(0, 1fr) 96px; }
.rsp-loy-adv summary { list-style: none; cursor: pointer; }
.rsp-loy-adv summary::-webkit-details-marker { display: none; }
.rsp-loy-adv summary h4::after { content: "▾"; margin-inline-start: auto; color: var(--muted); }
.rsp-loy-adv[open] summary { margin-bottom: 12px; }
.rsp-loy-adv[open] summary h4::after { content: "▴"; }

/* ─── رسائل الباقة ─── */
.rsp-locked .rsp-empty-icon { background: var(--amber-50); color: var(--amber-800); }
.rsp-locked-block h4 svg { color: var(--amber-800); }
.rsp-locked-block .rsp-btn { flex: none; min-height: 40px; padding: 0 14px; font-size: 14px; }
.rsp-plan-banner { margin: 12px 16px 0; padding: 12px 14px; border-radius: 14px; background: var(--red-50); color: var(--red-700); font-weight: 700; font-size: 14px; line-height: 1.6; }
.rsp-plan-banner.is-warn { background: #FFF7E8; color: #8A5A00; }
.rsp-plan-link { text-decoration: underline; white-space: nowrap; }
.rsp-cash-services { display: inline-block; margin: 0 2px 12px; font-size: 13px; font-weight: 700; color: var(--red-700); text-decoration: underline; }
.rsp-icon-btn.is-locked { opacity: .45; }
@media (min-width: 900px) { .rsp-plan-banner { margin: 16px 28px 0; } }

/* ─── نوع المتجر ─── */
.rsp-type { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; margin-bottom: 10px; text-align: right; background: #fff; border: 2px solid var(--line-2); border-radius: var(--radius); }
.rsp-type.is-active { border-color: var(--red); background: var(--red-50); }
.rsp-type > span { font-size: 34px; line-height: 1; }
.rsp-type b { display: block; font-size: 16px; font-weight: 800; }
.rsp-type small { display: block; font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 2px; }

/* ─── الكاشيرين ─── */
.rsp-cash-seats { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.rsp-cash-seats b { display: block; font-size: 30px; font-weight: 800; line-height: 1.1; }
.rsp-cash-seats b small { font-size: 16px; color: var(--muted); }
.rsp-cash-seats span { font-size: 14px; color: var(--muted); font-weight: 700; }
.rsp-cash-seats.is-full { background: var(--amber-50); border-color: #FFE29A; }
.rsp-cash-seats.is-full span { color: var(--amber-800); }
.rsp-cash-bar { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 10px; }
.rsp-cash-bar i { display: block; height: 100%; background: var(--red); border-radius: 99px; }
.rsp-cash-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.rsp-cash-actions .rsp-btn { flex: 1 1 180px; }
.rsp-cash-list { display: grid; gap: 10px; }
@media (min-width: 900px) { .rsp-cash-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rsp-cash-card { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; }
.rsp-cash-card.is-off { opacity: .75; }
.rsp-cash-avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--amber-50); color: var(--amber-800); flex: none; }
.rsp-cash-avatar svg { width: 24px; height: 24px; }
.rsp-cash-info { flex: 1; min-width: 0; display: grid; gap: 2px; justify-items: start; }
.rsp-cash-info b { font-size: 15.5px; font-weight: 800; }
.rsp-cash-info small { font-size: 13px; color: var(--muted); }
.rsp-cash-info em { font-style: normal; margin-top: 2px; }
.rsp-cash-btns { display: flex; gap: 4px; flex: none; }
.rsp-cash-member { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rsp-cash-member b { display: block; font-weight: 800; }
.rsp-cash-member small { font-size: 12.5px; color: var(--muted); }
.rsp-cash-member .rsp-btn { flex: none; min-height: 40px; padding: 0 12px; font-size: 14px; }
.rsp-cash-cred pre { white-space: pre-wrap; font-family: inherit; font-size: 15px; line-height: 1.9; background: var(--cream); border-radius: 12px; padding: 12px; margin-top: 10px; }

.rsp-cash-breakdown { margin-top: 6px; }
.rsp-cash-blocks { display: grid; gap: 8px; margin-bottom: 12px; }
.rsp-cash-block { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.rsp-cash-block b { display: block; font-weight: 800; }
.rsp-cash-block small { font-size: 13px; color: var(--muted); }
.rsp-cash-block.is-off { background: var(--red-50); border-color: #F6C6C8; }
.rsp-cash-block .rsp-btn { flex: none; min-height: 40px; padding: 0 16px; }
.rsp-cash-soon { display: inline !important; color: var(--red-700); }
.rsp-cash-qty { justify-content: center; margin-top: 10px; }
.rsp-cash-periods { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-top: 10px; }
.rsp-cash-periods button { padding: 12px 8px; border-radius: 14px; border: 2px solid var(--line-2); background: #fff; text-align: center; }
.rsp-cash-periods button.is-active { border-color: var(--red); background: var(--red-50); }
.rsp-cash-periods b { display: block; font-size: 15px; font-weight: 800; }
.rsp-cash-periods small { font-size: 12px; color: var(--muted); }
.rsp-cash-total { display: grid; align-content: center; padding-inline: 6px; }
.rsp-cash-total small { font-size: 12px; color: var(--muted); }
.rsp-cash-total b { font-size: 18px; font-weight: 800; white-space: nowrap; }
.rsp-locked .rsp-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ─── تصميم المنيو ─── */
.rsp-dz-preview-wrap { position: sticky; top: 0; z-index: 5; padding: 12px 0; margin-bottom: 12px; background: var(--cream); }
@media (min-width: 900px) { .rsp-dz-preview-wrap { top: 120px; } }
.rsp-dz-preview { display: flex; justify-content: center; }
.rsp-dz-phone {
	width: 290px; max-width: 100%; height: 340px; padding: 12px 12px 0; border-radius: 22px;
	display: flex; flex-direction: column;
	background: #F7F7F7; border: 6px solid var(--ink); box-shadow: var(--shadow); overflow: hidden;
	font-family: var(--dz-font);
}
.rsp-dz-cats { display: flex; gap: 10px; overflow: hidden; margin-bottom: 10px; }
.rsp-dz-cats span { display: grid; justify-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; color: var(--dz-cat-text); flex: none; }
.rsp-dz-cats i { display: block; width: var(--dz-cat-size); height: var(--dz-cat-size); border-radius: var(--dz-cat-radius); background: linear-gradient(135deg, #FFE9D6, #FFD9C2); border: 2px solid var(--dz-accent); }
.rsp-dz-grid { flex: 1; min-height: 0; overflow: hidden; display: grid; align-content: start; grid-auto-rows: max-content; grid-template-columns: repeat(var(--dz-cols), minmax(0, 1fr)); gap: var(--dz-gap); }
.rsp-dz-card { background: #fff; border-radius: var(--dz-radius); box-shadow: var(--dz-shadow); overflow: hidden; }
.rsp-dz-img { aspect-ratio: 3 / 2; max-height: 104px; display: grid; place-items: center; background: linear-gradient(135deg, #FFE9D6, #FFD9C2); color: #E7A983; }
.rsp-dz-img svg { width: 28px; height: 28px; }
.rsp-dz-body { padding: 8px; display: grid; gap: 4px; }
.rsp-dz-body b { font-size: 12px; font-weight: 800; }
.rsp-dz-body small { font-size: 10px; color: var(--muted); line-height: 1.5; }
.rsp-dz-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.rsp-dz-row i { font-style: normal; font-weight: 800; font-size: calc(var(--dz-price) * .62); }
.rsp-dz-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 26px; padding: 0 10px;
	background: var(--dz-primary); color: var(--dz-on-primary); border-radius: var(--dz-btn-radius); font-size: 11px; font-weight: 800; white-space: nowrap;
}
.rsp-dz-btn.is-icon { width: 26px; padding: 0; }
.rsp-dz-btn.is-icon svg { width: 14px; height: 14px; }
.rsp-dz-bar { display: flex; align-items: center; gap: 8px; margin: 10px -12px 0; padding: 10px 12px; background: var(--dz-bar-bg); color: var(--dz-bar-text); font-size: 11px; font-weight: 700; border-top: 1px solid rgba(0,0,0,.06); }
.rsp-dz-bar b { margin-inline-start: auto; }
.rsp-dz-bar i { font-style: normal; font-weight: 800; }

.rsp-dz-label { display: block; font-weight: 700; font-size: 13.5px; color: var(--ink-2); margin: 14px 0 6px; }
.rsp-dz-chips { margin-bottom: 4px; }
.rsp-dz-colors { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.rsp-dz-color { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--cream); border-radius: 12px; padding: 8px 12px; font-weight: 700; font-size: 13.5px; }
.rsp-dz-color input { width: 44px; height: 32px; border: 0; background: none; padding: 0; cursor: pointer; }
.rsp-dz-palette { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rsp-dz-palette button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-2); }
.rsp-dz-toggles { display: grid; gap: 10px; margin-top: 12px; }
.rsp-dz-toggle { justify-content: flex-start; }
.rsp-dz-range { display: block; font-weight: 700; font-size: 13.5px; color: var(--ink-2); margin: 14px 0 2px; }
.rsp-dz-range b { color: var(--red); }
input[type="range"][data-f] { width: 100%; accent-color: var(--red); }
.rsp-dz-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.rsp-dz-icons button { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; border: 2px solid var(--line-2); background: #fff; color: var(--ink-2); }
.rsp-dz-icons button.is-active { border-color: var(--red); background: var(--red-50); color: var(--red); }
.rsp-dz-icons svg { width: 22px; height: 22px; }
.rsp-dz-save { position: sticky; bottom: calc(var(--nav-h) + 8px); display: flex; gap: 10px; padding: 12px 0; background: linear-gradient(transparent, var(--cream) 30%); }
@media (min-width: 900px) { .rsp-dz-save { bottom: 8px; } }

/* ─── أوقات العمل ─── */
.rsp-hr-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--radius); margin-bottom: 14px; }
.rsp-hr-status b { font-size: 16px; font-weight: 800; }
.rsp-hr-status span { font-size: 13.5px; opacity: .8; }
.rsp-hr-status.is-open { background: var(--green-50); color: #0E7A38; }
.rsp-hr-status.is-closed { background: var(--red-50); color: var(--red-700); }
.rsp-hr-days { display: grid; gap: 10px; margin-bottom: 14px; }
@media (min-width: 900px) { .rsp-hr-days { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rsp-hr-day { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; }
.rsp-hr-day.is-off { background: #FBF7F4; box-shadow: none; border: 1px solid var(--line); }
.rsp-hr-day.is-today { outline: 2px solid var(--amber); }
.rsp-hr-day header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rsp-hr-day header em { font-size: 15px; font-weight: 800; color: var(--ink); }
.rsp-hr-day .rsp-hint { margin: 6px 0 0; }
.rsp-hr-times { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.rsp-hr-times .rsp-input { min-height: 44px; text-align: center; }
.rsp-hr-times span { font-size: 13px; color: var(--muted); font-weight: 700; flex: none; }
.rsp-hr-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rsp-hr-presets button { font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: var(--amber-50); color: var(--amber-800); }

/* ─── باركود المنيو ─── */
.rsp-qr-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; text-align: center; margin-bottom: 14px; }
.rsp-qr-img { display: inline-grid; place-items: center; padding: 12px; background: #fff; border: 2px solid var(--line); border-radius: 18px; }
.rsp-qr-img img { width: 200px; height: 200px; image-rendering: pixelated; }
.rsp-qr-link { margin: 12px auto 0; max-width: 420px; background: var(--cream); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; font-weight: 700; overflow-wrap: anywhere; }
.rsp-qr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.rsp-qr-actions .rsp-btn { flex: 1 1 140px; }

/* ─── زر موقع العميل في الطلبات ─── */
.rsp-loc-btn { color: var(--red); }
.rsp-loc-btn:hover { background: var(--red-50); }

/* ─── المصروفات والأرباح ─── */
.rsp-mn-month { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 12px; }
.rsp-mn-month b { font-size: 16px; font-weight: 800; min-width: 130px; text-align: center; }
.rsp-mn-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
@media (min-width: 900px) { .rsp-mn-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rsp-mn-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.rsp-mn-card span { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.rsp-mn-card b { display: block; font-size: 19px; font-weight: 800; margin-top: 2px; }
.rsp-mn-card small { font-size: 11.5px; color: var(--muted); }
.rsp-mn-card.is-profit { background: var(--green-50); border-color: #B7E4C7; }
.rsp-mn-card.is-profit b { color: #0E7A38; }
.rsp-mn-card.is-loss { background: var(--red-50); border-color: #F6C6C8; }
.rsp-mn-card.is-loss b { color: var(--red-700); }
.rsp-mn-vat { margin: 0 0 12px; }
.rsp-mn-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.rsp-mn-actions .rsp-btn { flex: 1 1 160px; }
.rsp-mn-list { display: grid; gap: 8px; }
@media (min-width: 900px) { .rsp-mn-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rsp-mn-row { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 10px 12px; width: 100%; text-align: right; cursor: pointer; }
.rsp-mn-img { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex: none; background: var(--cream); display: grid; place-items: center; color: var(--muted); }
.rsp-mn-img img { width: 100%; height: 100%; object-fit: cover; }
.rsp-mn-img svg { width: 20px; height: 20px; }
.rsp-mn-info { flex: 1; min-width: 0; }
.rsp-mn-info b { display: block; font-size: 14.5px; font-weight: 800; }
.rsp-mn-info small { font-size: 12.5px; color: var(--muted); }
.rsp-mn-amount { text-align: left; flex: none; }
.rsp-mn-amount b { font-size: 15px; font-weight: 800; white-space: nowrap; }
.rsp-mn-amount small { display: block; font-size: 11.5px; color: var(--muted); }

/* ─── الدعم الفني ─── */
.rsp-tk-new { width: 100%; margin-bottom: 12px; }
.rsp-tk-plan { margin: 0 2px 14px; font-size: 13px; color: var(--muted); }
.rsp-tk-plan.is-expired { color: var(--red-700); font-weight: 700; }
.rsp-tk-list { display: grid; gap: 10px; }
.rsp-tk-card { display: grid; gap: 4px; width: 100%; padding: 14px; text-align: right; background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--radius); }
.rsp-tk-card:hover { border-color: var(--red); }
.rsp-tk-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rsp-tk-card b { font-size: 15px; font-weight: 800; }
.rsp-tk-card small { color: var(--muted); font-size: 12.5px; }
.rsp-tk-when { opacity: .85; }
.rsp-tk-depts { display: grid; gap: 8px; }
.rsp-tk-detail h3 { font-size: 17px; font-weight: 800; margin: 0 0 6px; }
.rsp-tk-sub { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.rsp-tk-thread { display: grid; gap: 10px; }
.rsp-tk-msg { padding: 12px 14px; border-radius: 14px; background: #F7F4F1; }
.rsp-tk-msg.is-mine { background: var(--red-50); }
.rsp-tk-msg.is-system { background: transparent; border: 1px dashed var(--line-2); color: var(--muted); font-size: 13px; }
.rsp-tk-msg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.rsp-tk-msg-head b { font-size: 13.5px; font-weight: 800; }
.rsp-tk-msg-head small { color: var(--muted); font-size: 11.5px; }
.rsp-tk-msg-body { font-size: 14.5px; line-height: 1.7; }
.rsp-tk-msg-body p { margin: 0 0 6px; }
.rsp-tk-msg-body p:last-child { margin: 0; }
.rsp-tk-tabs { display: grid; grid-auto-flow: column; gap: 8px; margin-bottom: 14px; }
.rsp-tk-tabs button { height: 42px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; font: inherit; font-weight: 800; font-size: 14px; color: var(--ink-2); }
.rsp-tk-tabs button.is-active { border-color: var(--red); background: var(--red-50); color: var(--red-700); }
.rsp-tk-tabs i { font-style: normal; font-size: 12px; background: var(--red); color: #fff; border-radius: 99px; padding: 1px 7px; }
.rsp-tk-cats { margin-bottom: 12px; }
.rsp-tk-faqs { display: grid; gap: 10px; }
.rsp-tk-faq { border: 1.5px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: #fff; }
.rsp-tk-faq.is-open { border-color: var(--red); background: var(--red-50); }
.rsp-tk-faq-q { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 14px 16px; background: none; border: 0; text-align: right; font: inherit; font-weight: 800; font-size: 14.5px; color: var(--ink); }
.rsp-tk-faq.is-open .rsp-tk-faq-q { color: var(--red-700); }
.rsp-tk-faq-q i { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: #fff; color: var(--red); font-style: normal; font-weight: 800; transition: transform .25s; }
.rsp-tk-faq.is-open .rsp-tk-faq-q i { background: var(--red); color: #fff; transform: rotate(45deg); }
.rsp-tk-faq-a { display: none; padding: 0 16px 16px; font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.rsp-tk-faq.is-open .rsp-tk-faq-a { display: block; }
.rsp-tk-faq-a p { margin: 0 0 8px; }
.rsp-tk-faq-a img, .rsp-tk-faq-a iframe { max-width: 100%; border-radius: 12px; }
.rsp-tk-ask { margin-top: 18px; padding: 16px; border: 1.5px dashed var(--line-2); border-radius: var(--radius); text-align: center; }
.rsp-tk-ask p { margin: 0 0 10px; color: var(--muted); font-size: 13.5px; }
