/*
 * MOBIRENT UI kit – shared by checkout, customer panel, admin app (and reused by the theme).
 * Prefix: .mr-   Tokens: --mr-*
 */
:root {
	--mr-navy: #0B2B50;
	--mr-navy-2: #12396A;
	--mr-blue: #087BE8;
	--mr-blue-600: #0667C4;
	--mr-blue-50: #EAF7FF;
	--mr-blue-100: #D6EDFF;
	--mr-orange: #FF6B09;
	--mr-orange-600: #E85D00;
	--mr-orange-50: #FFF1E6;
	--mr-green: #16A34A;
	--mr-green-50: #DCFCE7;
	--mr-red: #DC2626;
	--mr-red-50: #FEE2E2;
	--mr-amber: #C2410C;
	--mr-amber-50: #FFEDD5;
	--mr-text: #0B2B50;
	--mr-body: #334155;
	--mr-muted: #64748B;
	--mr-border: #E2E8F0;
	--mr-border-2: #D6E4F2;
	--mr-surface: #FFFFFF;
	--mr-surface-2: #F5FAFF;
	--mr-bg: #EEF6FD;
	--mr-radius-sm: 8px;
	--mr-radius: 12px;
	--mr-radius-lg: 16px;
	--mr-radius-xl: 22px;
	--mr-shadow-sm: 0 1px 2px rgba(11, 43, 80, .06);
	--mr-shadow: 0 6px 24px rgba(11, 43, 80, .07);
	--mr-shadow-lg: 0 16px 40px rgba(11, 43, 80, .14);
	--mr-font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--mr-ease: cubic-bezier(.2, .7, .2, 1);
	--mr-safe-bottom: env(safe-area-inset-bottom, 0px);
}

.mr-app, .mr-app * { box-sizing: border-box; }
.mr-app { font-family: var(--mr-font); color: var(--mr-body); font-size: 14.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
.mr-app img { max-width: 100%; height: auto; }
.mr-app h1, .mr-app h2, .mr-app h3, .mr-app h4 { color: var(--mr-text); font-family: var(--mr-font); line-height: 1.25; margin: 0; letter-spacing: -.01em; }
:where(.mr-app) a { color: var(--mr-blue); text-decoration: none; }
:where(.mr-app) a:hover { text-decoration: underline; }
.mr-app button { font-family: inherit; }
.mr-app [hidden], .mr-app[hidden], [hidden].mr-alert, [hidden].mr-field { display: none !important; }
.mr-choice__title, .mr-choice__desc, .mr-choice__price { display: block; }
.mr-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.mr-icon { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.mr-icon--sm { width: 16px; height: 16px; }
.mr-icon--lg { width: 26px; height: 26px; }

/* Focus visibility (WCAG 2.2) */
.mr-app :focus-visible { outline: 3px solid rgba(8, 123, 232, .45); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.mr-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 18px; border-radius: var(--mr-radius);
	font: 700 14px/1.2 var(--mr-font); letter-spacing: .01em; cursor: pointer;
	border: 1.5px solid transparent; background: var(--mr-blue); color: #fff; text-decoration: none !important;
	transition: background .18s var(--mr-ease), box-shadow .18s, transform .06s, border-color .18s; white-space: nowrap;
}
.mr-btn:hover { background: var(--mr-blue-600); color: #fff; }
.mr-btn:active { transform: translateY(1px); }
.mr-btn[disabled], .mr-btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.mr-btn--primary { background: linear-gradient(180deg, #FF7A1F, var(--mr-orange)); box-shadow: 0 6px 16px rgba(255, 107, 9, .28); }
.mr-btn--primary:hover { background: var(--mr-orange-600); }
.mr-btn--navy { background: var(--mr-navy); }
.mr-btn--navy:hover { background: var(--mr-navy-2); }
.mr-btn--outline { background: #fff; color: var(--mr-blue); border-color: var(--mr-blue); }
.mr-btn--outline:hover { background: var(--mr-blue-50); color: var(--mr-blue-600); }
.mr-btn--ghost { background: var(--mr-blue-50); color: var(--mr-blue); }
.mr-btn--ghost:hover { background: var(--mr-blue-100); color: var(--mr-blue-600); }
.mr-btn--light { background: #fff; color: var(--mr-text); border-color: var(--mr-border); }
.mr-btn--light:hover { background: var(--mr-surface-2); color: var(--mr-text); }
.mr-btn--danger { background: #fff; color: var(--mr-red); border-color: #FCA5A5; }
.mr-btn--danger:hover { background: var(--mr-red-50); color: var(--mr-red); }
.mr-btn--success { background: var(--mr-green); }
.mr-btn--success:hover { background: #15803D; }
.mr-btn--sm { min-height: 36px; padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.mr-btn--xs { min-height: 30px; padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.mr-btn--lg { min-height: 52px; padding: 14px 24px; font-size: 15.5px; border-radius: 14px; }
.mr-btn--block { display: flex; width: 100%; }
.mr-btn--icon { width: 40px; min-height: 40px; padding: 0; border-radius: 10px; }
.mr-btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.mr-btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.55); border-top-color: #fff; border-radius: 50%; animation: mr-spin .7s linear infinite; }
.mr-btn--outline.is-loading::after, .mr-btn--light.is-loading::after, .mr-btn--ghost.is-loading::after { border-color: rgba(8,123,232,.3); border-top-color: var(--mr-blue); }
.mr-link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; color: var(--mr-blue); }
.mr-link-arrow .mr-icon { width: 16px; height: 16px; }

/* ---------- Cards ---------- */
.mr-card { background: var(--mr-surface); border: 1px solid var(--mr-border); border-radius: var(--mr-radius-lg); box-shadow: var(--mr-shadow-sm); }
.mr-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 0; flex-wrap: wrap; }
.mr-card__title { font-size: 17px; font-weight: 800; color: var(--mr-text); display: flex; align-items: center; gap: 10px; }
.mr-card__title .mr-icon { color: var(--mr-blue); }
.mr-card__sub { font-size: 13px; color: var(--mr-muted); margin-top: 2px; }
.mr-card__body { padding: 16px 20px 20px; }
.mr-card--pad { padding: 20px; }
.mr-card--soft { background: var(--mr-surface-2); border-color: var(--mr-border-2); box-shadow: none; }

/* ---------- Badges ---------- */
.mr-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap; background: #F1F5F9; color: #475569; }
.mr-badge--success { background: var(--mr-green-50); color: #15803D; }
.mr-badge--info { background: #DBEAFE; color: #1D4ED8; }
.mr-badge--warning { background: var(--mr-amber-50); color: var(--mr-amber); }
.mr-badge--danger { background: var(--mr-red-50); color: #B91C1C; }
.mr-badge--orange { background: var(--mr-orange); color: #fff; }
.mr-badge--gold { background: #FEF3C7; color: #92400E; }
.mr-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* ---------- Forms ---------- */
.mr-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mr-label { font-size: 13px; font-weight: 700; color: var(--mr-text); }
.mr-label .req { color: var(--mr-red); }
.mr-help { font-size: 12px; color: var(--mr-muted); }
.mr-error { font-size: 12.5px; color: var(--mr-red); font-weight: 600; }
.mr-control { position: relative; display: flex; align-items: center; }
.mr-control > .mr-icon { position: absolute; left: 12px; color: var(--mr-muted); pointer-events: none; width: 18px; height: 18px; }
.mr-control > .mr-icon + .mr-input, .mr-control > .mr-icon + .mr-select, .mr-control > .mr-icon + .mr-textarea { padding-left: 40px; }
.mr-step__title, .mr-step__desc { display: block; }
.mr-input, .mr-select, .mr-textarea {
	width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--mr-border); border-radius: var(--mr-radius);
	background: #fff; color: var(--mr-text); font: 500 14.5px/1.4 var(--mr-font); transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
.mr-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.mr-textarea { min-height: 88px; resize: vertical; }
.mr-input:focus, .mr-select:focus, .mr-textarea:focus { outline: none; border-color: var(--mr-blue); box-shadow: 0 0 0 4px rgba(8, 123, 232, .12); }
.mr-input[aria-invalid="true"], .mr-select[aria-invalid="true"], .mr-textarea[aria-invalid="true"] { border-color: var(--mr-red); }
.mr-input::placeholder, .mr-textarea::placeholder { color: #94A3B8; }
.mr-input[readonly] { background: var(--mr-surface-2); }
.mr-grid { display: grid; gap: 14px; }
.mr-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mr-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mr-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mr-span-2 { grid-column: span 2; }
.mr-span-all { grid-column: 1 / -1; }
.mr-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; cursor: pointer; }
.mr-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--mr-blue); flex: none; }
.mr-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 13.5px; }
.mr-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mr-switch__ui { width: 42px; height: 24px; border-radius: 999px; background: #CBD5E1; position: relative; transition: background .2s; flex: none; }
.mr-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--mr-shadow-sm); transition: transform .2s var(--mr-ease); }
.mr-switch input:checked + .mr-switch__ui { background: var(--mr-blue); }
.mr-switch input:checked + .mr-switch__ui::after { transform: translateX(18px); }
.mr-switch input:focus-visible + .mr-switch__ui { outline: 3px solid rgba(8,123,232,.45); outline-offset: 2px; }

/* Choice cards (checkbox / radio as cards) */
.mr-choice { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--mr-border); border-radius: var(--mr-radius); background: #fff; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; min-height: 44px; }
.mr-choice:hover { border-color: var(--mr-blue-100); background: var(--mr-surface-2); }
.mr-choice input { position: absolute; opacity: 0; pointer-events: none; }
.mr-choice__box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid #CBD5E1; flex: none; display: grid; place-items: center; background: #fff; transition: all .15s; margin-top: 1px; }
.mr-choice--radio .mr-choice__box { border-radius: 50%; }
.mr-choice__box svg { width: 14px; height: 14px; color: #fff; opacity: 0; }
.mr-choice--radio .mr-choice__box::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #fff; opacity: 0; }
.mr-choice input:checked ~ .mr-choice__box { background: var(--mr-blue); border-color: var(--mr-blue); }
.mr-choice input:checked ~ .mr-choice__box svg, .mr-choice--radio input:checked ~ .mr-choice__box::after { opacity: 1; }
.mr-choice:has(input:checked) { border-color: var(--mr-blue); background: #F3F9FF; box-shadow: 0 0 0 3px rgba(8, 123, 232, .08); }
.mr-choice input:focus-visible ~ .mr-choice__box { outline: 3px solid rgba(8,123,232,.45); outline-offset: 2px; }
.mr-choice input:disabled ~ * { opacity: .55; }
.mr-choice:has(input:disabled) { cursor: not-allowed; background: #F8FAFC; }
.mr-choice__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--mr-blue-50); color: var(--mr-blue); flex: none; }
.mr-choice__title { font-weight: 800; color: var(--mr-text); font-size: 14px; }
.mr-choice__desc { font-size: 12.5px; color: var(--mr-muted); line-height: 1.45; }
.mr-choice__price { font-weight: 800; color: var(--mr-orange); font-size: 13.5px; margin-top: 4px; }
.mr-choice__price small { color: var(--mr-muted); font-weight: 600; }

/* ---------- Icon bubble & stats ---------- */
.mr-bubble { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--mr-blue-50); color: var(--mr-blue); }
.mr-bubble .mr-icon { width: 24px; height: 24px; }
.mr-bubble--orange { background: var(--mr-orange-50); color: var(--mr-orange); }
.mr-bubble--green { background: var(--mr-green-50); color: var(--mr-green); }
.mr-bubble--navy { background: #E6EDF6; color: var(--mr-navy); }
.mr-bubble--red { background: var(--mr-red-50); color: var(--mr-red); }
.mr-bubble--violet { background: #EDE9FE; color: #6D28D9; }
.mr-bubble--amber { background: #FEF3C7; color: #B45309; }
.mr-bubble--sm { width: 38px; height: 38px; border-radius: 11px; }
.mr-bubble--sm .mr-icon { width: 20px; height: 20px; }
.mr-bubble--solid { background: var(--mr-blue); color: #fff; }
.mr-bubble--solid-orange { background: var(--mr-orange); color: #fff; }
.mr-bubble--solid-green { background: var(--mr-green); color: #fff; }

.mr-stat { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: #fff; border: 1px solid var(--mr-border); border-radius: var(--mr-radius-lg); box-shadow: var(--mr-shadow-sm); min-width: 0; }
.mr-stat__label { font-size: 13px; font-weight: 600; color: var(--mr-muted); }
.mr-stat__value { font-size: 25px; font-weight: 800; color: var(--mr-text); line-height: 1.15; margin-top: 2px; word-break: break-word; }
.mr-stat__value small { font-size: 13px; font-weight: 600; color: var(--mr-muted); }
.mr-stat__meta { font-size: 12px; color: var(--mr-muted); margin-top: 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mr-trend { font-weight: 800; display: inline-flex; align-items: center; gap: 2px; }
.mr-trend--up { color: var(--mr-green); }
.mr-trend--down { color: var(--mr-red); }
.mr-trend .mr-icon { width: 14px; height: 14px; }

/* ---------- Tables (become cards on mobile) ---------- */
.mr-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mr-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.mr-table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--mr-muted); background: var(--mr-surface-2); padding: 11px 12px; white-space: nowrap; border-bottom: 1px solid var(--mr-border); }
.mr-table th:first-child { border-top-left-radius: 10px; }
.mr-table th:last-child { border-top-right-radius: 10px; }
.mr-table td { padding: 12px; border-bottom: 1px solid #EEF2F7; color: var(--mr-body); vertical-align: middle; }
.mr-table tbody tr:hover td { background: #FAFCFF; }
.mr-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mr-table .strong { font-weight: 700; color: var(--mr-text); }
.mr-table-actions { display: flex; gap: 6px; justify-content: flex-end; }
@media (max-width: 760px) {
	.mr-table--stack thead { display: none; }
	.mr-table--stack, .mr-table--stack tbody, .mr-table--stack tr, .mr-table--stack td { display: block; width: 100%; }
	.mr-table--stack tr { background: #fff; border: 1px solid var(--mr-border); border-radius: 14px; padding: 10px 14px; margin-bottom: 10px; box-shadow: var(--mr-shadow-sm); }
	.mr-table--stack td { border: 0; padding: 6px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
	.mr-table--stack td::before { content: attr(data-label); font-weight: 700; color: var(--mr-muted); font-size: 12px; text-align: left; flex: none; max-width: 45%; }
	.mr-table--stack td[data-label=""]::before { display: none; }
	.mr-table--stack td.mr-td-main { display: block; text-align: left; font-size: 14px; padding-bottom: 8px; border-bottom: 1px dashed var(--mr-border); margin-bottom: 4px; }
	.mr-table--stack td.mr-td-main::before { display: none; }
	.mr-table--stack .mr-table-actions { justify-content: flex-end; width: 100%; }
	.mr-table--stack tbody tr:hover td { background: transparent; }
}

/* ---------- Tabs / segmented ---------- */
.mr-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--mr-border); overflow-x: auto; scrollbar-width: none; }
.mr-tabs::-webkit-scrollbar { display: none; }
.mr-tab { padding: 10px 16px; border: 0; background: none; font: 700 13.5px var(--mr-font); color: var(--mr-muted); border-bottom: 2.5px solid transparent; cursor: pointer; white-space: nowrap; min-height: 44px; text-decoration: none !important; display: inline-flex; align-items: center; gap: 6px; }
.mr-tab:hover { color: var(--mr-text); }
.mr-tab.is-active, .mr-tab[aria-selected="true"] { color: var(--mr-blue); border-bottom-color: var(--mr-blue); }
.mr-tab .mr-count { background: var(--mr-blue-50); color: var(--mr-blue); border-radius: 999px; padding: 0 7px; font-size: 11.5px; }
.mr-segment { display: inline-flex; padding: 4px; gap: 4px; background: var(--mr-surface-2); border: 1px solid var(--mr-border); border-radius: 12px; }
.mr-segment button, .mr-segment a { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font: 700 13px var(--mr-font); color: var(--mr-muted); cursor: pointer; min-height: 36px; }
.mr-segment .is-active { background: #fff; color: var(--mr-blue); box-shadow: var(--mr-shadow-sm); }

/* ---------- Stepper ---------- */
.mr-stepper { display: flex; align-items: flex-start; gap: 0; counter-reset: step; }
.mr-step { flex: 1; display: flex; align-items: center; gap: 12px; position: relative; min-width: 0; }
.mr-step__dot { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #E2E8F0; color: #64748B; flex: none; font-weight: 800; position: relative; z-index: 1; }
.mr-step.is-done .mr-step__dot { background: var(--mr-blue); color: #fff; }
.mr-step.is-current .mr-step__dot { background: var(--mr-orange); color: #fff; box-shadow: 0 0 0 6px rgba(255,107,9,.14); }
.mr-step__title { font-weight: 800; color: var(--mr-text); font-size: 14px; }
.mr-step.is-current .mr-step__title { color: var(--mr-orange); }
.mr-step__desc { font-size: 12.5px; color: var(--mr-muted); }
.mr-step:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: #D6E4F2; margin: 0 14px; min-width: 20px; }
.mr-step.is-done:not(:last-child)::after { background: var(--mr-blue); }
@media (max-width: 760px) {
	.mr-stepper { gap: 0; }
	.mr-step { flex-direction: column; gap: 6px; text-align: center; }
	.mr-step__dot { width: 34px; height: 34px; font-size: 14px; background: #fff; border: 2px solid #CBD5E1; }
	.mr-step.is-done .mr-step__dot, .mr-step.is-current .mr-step__dot { border-color: var(--mr-blue); background: var(--mr-blue); }
	.mr-step.is-current .mr-step__dot { box-shadow: 0 0 0 5px rgba(8,123,232,.14); }
	.mr-step.is-current .mr-step__title { color: var(--mr-blue); }
	.mr-step__title { font-size: 12px; font-weight: 700; }
	.mr-step__desc { display: none; }
	.mr-step:not(:last-child)::after { position: absolute; top: 17px; left: calc(50% + 22px); right: calc(-50% + 22px); margin: 0; min-width: 0; }
}

/* ---------- Alerts / toasts / empty / skeleton ---------- */
.mr-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--mr-radius); background: var(--mr-blue-50); color: var(--mr-navy); font-size: 13.5px; border: 1px solid var(--mr-blue-100); }
.mr-alert .mr-icon { color: var(--mr-blue); margin-top: 1px; }
.mr-alert--success { background: #F0FDF4; border-color: #BBF7D0; color: #14532D; }
.mr-alert--success .mr-icon { color: var(--mr-green); }
.mr-alert--warning { background: #FFF7ED; border-color: #FED7AA; color: #7C2D12; }
.mr-alert--warning .mr-icon { color: var(--mr-orange); }
.mr-alert--danger { background: #FEF2F2; border-color: #FECACA; color: #7F1D1D; }
.mr-alert--danger .mr-icon { color: var(--mr-red); }
.mr-toasts { position: fixed; z-index: 100000; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 36px)); }
.mr-toast { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; background: var(--mr-navy); color: #fff; border-radius: 14px; box-shadow: var(--mr-shadow-lg); font: 600 13.5px/1.45 var(--mr-font); animation: mr-toast-in .25s var(--mr-ease); }
.mr-toast--success { background: #14532D; }
.mr-toast--error { background: #7F1D1D; }
.mr-toast .mr-icon { width: 18px; height: 18px; margin-top: 1px; }
@media (max-width: 760px) { .mr-toasts { left: 12px; right: 12px; bottom: calc(84px + var(--mr-safe-bottom)); max-width: none; } }
.mr-empty { text-align: center; padding: 36px 20px; color: var(--mr-muted); }
.mr-empty .mr-bubble { margin: 0 auto 12px; width: 60px; height: 60px; border-radius: 18px; }
.mr-empty h4 { font-size: 16px; margin-bottom: 4px; }
.mr-skeleton { background: linear-gradient(90deg, #EEF2F7 25%, #F7F9FC 37%, #EEF2F7 63%); background-size: 400% 100%; animation: mr-shimmer 1.3s ease infinite; border-radius: 10px; }
.mr-spinner { width: 28px; height: 28px; border: 3px solid var(--mr-blue-100); border-top-color: var(--mr-blue); border-radius: 50%; animation: mr-spin .8s linear infinite; margin: 20px auto; }
.mr-loading-overlay { position: relative; pointer-events: none; }
.mr-loading-overlay::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.6); border-radius: inherit; }

/* ---------- Modal / bottom sheet ---------- */
.mr-modal { border: 0; padding: 0; border-radius: 20px; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); box-shadow: var(--mr-shadow-lg); color: var(--mr-body); font-family: var(--mr-font); }
.mr-modal--lg { width: min(860px, calc(100vw - 24px)); }
.mr-modal::backdrop { background: rgba(11, 43, 80, .45); backdrop-filter: blur(2px); }
.mr-modal__inner { display: flex; flex-direction: column; max-height: calc(100dvh - 40px); }
.mr-modal__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--mr-border); }
.mr-modal__head h3 { font-size: 17px; }
.mr-modal__body { padding: 18px 20px; overflow-y: auto; }
.mr-modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--mr-border); background: var(--mr-surface-2); flex-wrap: wrap; }
.mr-modal__close { border: 0; background: var(--mr-surface-2); width: 38px; height: 38px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; color: var(--mr-muted); }
@media (max-width: 760px) {
	.mr-modal { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 22px 22px 0 0; max-height: 92dvh; }
	.mr-modal__inner { max-height: 92dvh; }
	.mr-modal__foot { padding-bottom: calc(14px + var(--mr-safe-bottom)); }
	.mr-modal[open] { animation: mr-sheet-in .25s var(--mr-ease); }
	.mr-modal__head::before { content: ""; position: absolute; top: 7px; left: 50%; width: 42px; height: 4px; border-radius: 4px; background: #CBD5E1; transform: translateX(-50%); }
	.mr-modal__head { position: relative; }
}

/* ---------- Bottom navigation (mobile app shells) ---------- */
.mr-bottom-nav { position: fixed; z-index: 900; left: 0; right: 0; bottom: 0; display: none; background: #fff; border-top: 1px solid var(--mr-border); box-shadow: 0 -6px 24px rgba(11,43,80,.08); padding: 6px 8px calc(6px + var(--mr-safe-bottom)); }
.mr-bottom-nav__inner { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; max-width: 640px; margin: 0 auto; }
.mr-bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; border-radius: 14px; color: var(--mr-muted); font: 600 11.5px var(--mr-font); text-decoration: none !important; position: relative; }
.mr-bottom-nav a .mr-icon { width: 23px; height: 23px; }
.mr-bottom-nav a.is-active { color: var(--mr-blue); background: var(--mr-blue-50); font-weight: 800; }
.mr-bottom-nav .mr-nav-count { position: absolute; top: 4px; right: calc(50% - 22px); background: var(--mr-red); color: #fff; border-radius: 999px; min-width: 17px; height: 17px; font-size: 10px; display: grid; place-items: center; padding: 0 4px; }
@media (max-width: 900px) { .mr-bottom-nav { display: block; } .mr-has-bottom-nav { padding-bottom: calc(76px + var(--mr-safe-bottom)) !important; } }

/* ---------- Sticky action bar (mobile checkout) ---------- */
.mr-sticky-bar { position: fixed; z-index: 950; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--mr-border); box-shadow: 0 -8px 28px rgba(11,43,80,.12); padding: 12px 16px calc(12px + var(--mr-safe-bottom)); display: none; align-items: center; gap: 12px; }
@media (max-width: 900px) { .mr-sticky-bar { display: flex; } }

/* ---------- Misc ---------- */
.mr-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--mr-blue-50); color: var(--mr-blue); display: inline-grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; overflow: hidden; }
.mr-avatar--lg { width: 72px; height: 72px; font-size: 22px; }
.mr-avatar--xl { width: 96px; height: 96px; font-size: 28px; }
.mr-price { color: var(--mr-orange); font-weight: 800; }
.mr-price small { color: var(--mr-muted); font-weight: 600; font-size: .8em; }
.mr-muted { color: var(--mr-muted); }
.mr-strong { color: var(--mr-text); font-weight: 700; }
.mr-divider { height: 1px; background: var(--mr-border); border: 0; margin: 14px 0; }
.mr-row { display: flex; align-items: center; gap: 10px; }
.mr-row--between { justify-content: space-between; }
.mr-row--wrap { flex-wrap: wrap; }
.mr-stack { display: flex; flex-direction: column; gap: 12px; }
.mr-kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13.5px; }
.mr-kv dt, .mr-kv > span:first-child { color: var(--mr-muted); }
.mr-kv dd, .mr-kv > span:last-child { margin: 0; color: var(--mr-text); font-weight: 600; text-align: right; }
.mr-thumb { width: 72px; height: 50px; object-fit: contain; border-radius: 8px; background: #fff; flex: none; }
.mr-thumb--lg { width: 120px; height: 80px; }
.mr-pagination { display: flex; gap: 6px; justify-content: center; align-items: center; padding: 16px 0 4px; flex-wrap: wrap; }
.mr-pagination a, .mr-pagination span { min-width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--mr-border); background: #fff; font-weight: 700; color: var(--mr-text); padding: 0 10px; text-decoration: none !important; font-size: 13px; }
.mr-pagination .is-current { background: var(--mr-blue); border-color: var(--mr-blue); color: #fff; }
.mr-pagination .is-disabled { opacity: .45; }
.mr-countdown { font-weight: 800; color: var(--mr-red); font-variant-numeric: tabular-nums; }
.mr-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--mr-surface-2); border: 1px solid var(--mr-border); font-size: 12.5px; font-weight: 600; color: var(--mr-text); }
.mr-feature-list { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.mr-feature { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; color: var(--mr-muted); text-align: center; min-width: 56px; }
.mr-feature .mr-icon { color: var(--mr-navy); width: 22px; height: 22px; }
.mr-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: var(--mr-muted); align-items: center; }
.mr-meta span { display: inline-flex; gap: 5px; align-items: center; }
.mr-meta .mr-icon { width: 15px; height: 15px; }
.mr-stars { display: inline-flex; gap: 1px; color: #F59E0B; }
.mr-stars .is-off { color: #E2E8F0; }
.mr-demo-flag { display: inline-flex; align-items: center; gap: 6px; background: #FEF3C7; color: #92400E; font-weight: 800; font-size: 11px; padding: 2px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; }

@keyframes mr-spin { to { transform: rotate(360deg); } }
@keyframes mr-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@keyframes mr-toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes mr-sheet-in { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mr-app *, .mr-app *::before, .mr-app *::after { animation: none !important; transition: none !important; } }

@media (max-width: 1024px) { .mr-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
	.mr-grid--2, .mr-grid--3 { grid-template-columns: minmax(0, 1fr); }
	.mr-span-2 { grid-column: auto; }
	.mr-card__head { padding: 14px 16px 0; }
	.mr-card__body { padding: 14px 16px 16px; }
	.mr-stat { padding: 14px; gap: 10px; }
	.mr-stat__value { font-size: 21px; }
	.mr-bubble { width: 42px; height: 42px; border-radius: 12px; }
}
@media print {
	.mr-bottom-nav, .mr-sticky-bar, .mr-toasts, .mr-no-print { display: none !important; }
}
