/* =========================================================
   SatNet — /marketplace · NFT membership resale
   Mobile-first webapp. Extends brand.css.
   ========================================================= */

:root { --mk-max: 1180px; --mkbar-h: 60px; --mkfilter-h: 56px; --mkbuy-h: 76px; }

/* clip (not hidden): keeps fixed bars pinned to the viewport (see join.css note). */
body { background: var(--bg-0); overflow-x: clip; }
body::after { opacity: 0.3; }
* { min-width: 0; }

/* When the shared shell sidebar is present, offset the fixed bars past it on desktop. */
@media (min-width: 1024px) {
  body.has-shell .mk-bar, body.has-shell .mk-filters { left: var(--shell-w, 236px); }
}
/* On mobile the shell injects a floating burger (44px at left:10px, z-index:70);
   pad the bar row so the "Back" link doesn't sit underneath it. */
@media (max-width: 1023px) {
  body.has-shell .mk-bar-row { padding-left: 62px; }
}

/* ============ 1) Sticky top bar ============ */
.mk-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: rgba(5,7,13,0.88); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px);
}
.mk-bar-row { max-width: var(--mk-max); margin: 0 auto; height: var(--mkbar-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; }
.mk-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; color: var(--ink-soft); cursor: pointer; font-family: var(--f-body); font-size: 14px; font-weight: 500; background: none; border: 0; }
.mk-back:hover { color: var(--ink); }
.mk-back svg { width: 18px; height: 18px; }
.mk-title { font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: -0.015em; display: flex; align-items: center; gap: 9px; position: absolute; left: 50%; transform: translateX(-50%); }
.mk-title svg { width: 24px; height: 24px; }
.mk-bar-actions { display: flex; align-items: center; gap: 6px; }
.mk-lang { position: relative; }
.mk-lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,0.04); border: 1px solid var(--line-strong); font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.mk-lang summary::-webkit-details-marker { display: none; }
.mk-lang[open] summary { color: var(--accent); border-color: rgba(107,227,214,0.3); }
.mk-lang-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 168px; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 6px; box-shadow: 0 24px 48px rgba(0,0,0,0.5); z-index: 70; }
.mk-lang-menu button { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 10px 12px; background: transparent; border: 0; color: var(--ink-soft); font-family: var(--f-body); font-size: 14px; text-align: left; cursor: pointer; border-radius: 8px; }
.mk-lang-menu button:hover { background: rgba(255,255,255,0.04); color: var(--ink); }
.mk-lang-menu button[aria-pressed="true"] { color: var(--accent); }
.mk-lang-menu .code { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-mute); }

/* ============ Layout ============ */
.mk-page { padding-top: calc(var(--mkbar-h) + var(--mkfilter-h)); padding-bottom: calc(var(--mkbuy-h) + env(safe-area-inset-bottom,0px) + 24px); }
.mk-wrap { max-width: var(--mk-max); margin: 0 auto; padding: 0 18px; position: relative; z-index: 1; }

/* ============ 2) Filter chips (sticky under bar) ============ */
.mk-filters {
  position: fixed; top: calc(var(--mkbar-h) + env(safe-area-inset-top,0px)); left: 0; right: 0; z-index: 55;
  background: rgba(5,7,13,0.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.mk-filters-row { max-width: var(--mk-max); margin: 0 auto; height: var(--mkfilter-h); display: flex; align-items: center; gap: 8px; padding: 0 18px; overflow-x: auto; scrollbar-width: none; }
.mk-filters-row::-webkit-scrollbar { display: none; }
.mk-chip {
  flex-shrink: 0; min-height: 36px; padding: 0 14px; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-strong);
  color: var(--ink-soft); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: 0.15s; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.mk-chip:hover { color: var(--ink); background: rgba(255,255,255,0.07); }
.mk-chip[aria-pressed="true"] { background: var(--accent); color: #04221F; border-color: var(--accent); font-weight: 700; }
.mk-chip .tdot { width: 8px; height: 8px; border-radius: 50%; }
.mk-chip.sep { pointer-events: none; width: 1px; min-height: 22px; padding: 0; background: var(--line-strong); border: 0; opacity: 0.6; }

/* ============ 3) My listing card ============ */
.mk-mine {
  margin: 22px 0 8px;
  background: linear-gradient(135deg, rgba(107,227,214,0.08), rgba(110,124,255,0.05));
  border: 1px solid rgba(107,227,214,0.22); border-radius: var(--r-lg);
  padding: 20px; display: flex; gap: 18px; align-items: center; position: relative; overflow: hidden;
}
.mk-mine::before { content:""; position:absolute; inset:0; pointer-events:none; background: radial-gradient(360px 160px at 0% 0%, rgba(107,227,214,0.10), transparent 62%); }
.mk-mine .badge { width: 64px; height: 64px; flex-shrink: 0; position: relative; }
.mk-mine .badge svg { width: 100%; height: 100%; }
.mk-mine .info { flex: 1; min-width: 0; position: relative; }
.mk-mine .k { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.mk-mine .h { font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: -0.015em; margin-top: 4px; }
.mk-mine .sub { font-family: var(--f-mono); font-size: 11px; color: var(--ink-mute); margin-top: 4px; letter-spacing: 0.04em; }
.mk-mine .act { position: relative; flex-shrink: 0; }
.mk-mine .act .btn { padding: 11px 18px; font-size: 13px; white-space: nowrap; }
.mk-mine.listed { border-color: rgba(242,181,68,0.3); }
.mk-mine.listed .k { color: var(--warning); }

/* ============ Section heading ============ */
.mk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 16px; flex-wrap: wrap; }
.mk-head h2 { font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; margin: 0; }
.mk-head .count { font-family: var(--f-mono); font-size: 12px; color: var(--ink-mute); letter-spacing: 0.04em; }

/* ============ 4) Listings grid ============ */
.mk-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.nft {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; cursor: pointer; transition: 0.18s cubic-bezier(0.2,0.7,0.3,1);
  position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.nft:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.nft::before { content:""; position:absolute; inset:0; pointer-events:none; opacity: 0.6; background: radial-gradient(280px 140px at 18% 0%, var(--nft-glow, rgba(248,215,127,0.12)), transparent 60%); }
.nft.bronze  { --nft-glow: rgba(226,154,108,0.14); }
.nft.silver  { --nft-glow: rgba(232,238,245,0.10); }
.nft.gold    { --nft-glow: rgba(248,215,127,0.14); }
.nft.diamond { --nft-glow: rgba(184,241,255,0.16); }
.nft.crown   { --nft-glow: rgba(216,184,255,0.18); border-color: rgba(216,184,255,0.22); }
.nft-top { display: flex; gap: 14px; align-items: center; position: relative; }
.nft-badge { width: 64px; height: 64px; flex-shrink: 0; }
.nft-badge svg { width: 100%; height: 100%; }
.nft-id { flex: 1; min-width: 0; }
.nft-tier { font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: -0.015em; display: flex; align-items: center; gap: 8px; }
.nft-tierpill { font-family: var(--f-mono); font-size: 8px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; padding: 3px 7px; border-radius: 999px; }
.nft-tierpill.bronze  { color: var(--bronze-a); background: rgba(226,154,108,0.12); border: 1px solid rgba(226,154,108,0.3); }
.nft-tierpill.silver  { color: var(--silver-a); background: rgba(232,238,245,0.08); border: 1px solid rgba(232,238,245,0.22); }
.nft-tierpill.gold    { color: var(--gold-a); background: rgba(248,215,127,0.12); border: 1px solid rgba(248,215,127,0.3); }
.nft-tierpill.diamond { color: var(--diamond-a); background: rgba(184,241,255,0.12); border: 1px solid rgba(184,241,255,0.3); }
.nft-tierpill.crown   { color: var(--crown-a); background: rgba(216,184,255,0.14); border: 1px solid rgba(216,184,255,0.34); }
.nft-mint { font-family: var(--f-mono); font-size: 12px; color: var(--ink-mute); margin-top: 4px; letter-spacing: 0.06em; }
.nft-owner { font-family: var(--f-mono); font-size: 11px; color: var(--ink-dim); margin-top: 2px; letter-spacing: 0.04em; }

/* position stats */
.nft-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); position: relative; }
.nft-stat { text-align: center; }
.nft-stat .v { font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.nft-stat .k { font-family: var(--f-mono); font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); margin-top: 3px; }

/* leg balance mini bar */
.nft-legbar { margin-top: 12px; position: relative; }
.nft-legbar .labels { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.06em; color: var(--ink-mute); margin-bottom: 5px; }
.nft-legbar .track { height: 5px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; display: flex; }
.nft-legbar .track .l { background: var(--accent); }
.nft-legbar .track .r { background: var(--accent-2); }

/* price + buy row */
.nft-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); position: relative; }
.nft-price .k { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.nft-price .v { font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.nft-price .v small { font-family: var(--f-mono); font-size: 12px; color: var(--ink-mute); font-weight: 500; margin-left: 3px; }
.nft-price .floor { font-family: var(--f-mono); font-size: 10px; color: var(--ink-dim); margin-top: 2px; }
.nft-buy { padding: 10px 18px; border-radius: 999px; background: var(--accent); color: #04221F; border: 0; font-family: var(--f-display); font-weight: 700; font-size: 13px; cursor: pointer; transition: 0.15s; white-space: nowrap; }
.nft-buy:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(107,227,214,0.3); }

/* ============ 5) Empty state ============ */
.mk-empty { text-align: center; padding: 80px 24px; }
.mk-empty .mark { width: 72px; height: 72px; margin: 0 auto 22px; opacity: 0.7; }
.mk-empty .mark svg { width: 100%; height: 100%; }
.mk-empty h3 { font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; margin: 0 0 8px; }
.mk-empty p { color: var(--ink-soft); font-size: 15px; line-height: 1.55; margin: 0 auto 24px; max-width: 40ch; }

/* ============ 6) Detail modal / side panel ============ */
.mk-modal-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(5,7,13,0.85); backdrop-filter: blur(8px);
  display: none; align-items: flex-end; justify-content: center;
}
.mk-modal-backdrop.open { display: flex; }
.mk-modal {
  width: 100%; max-width: 560px; max-height: 92vh;
  background: var(--bg-1); border: 1px solid var(--line-strong);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  display: flex; flex-direction: column; overflow: hidden;
  animation: sheet-up 0.28s cubic-bezier(0.2,0.7,0.3,1);
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.mk-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.mk-modal-head .t { font-family: var(--f-display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.mk-modal-head .close { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--line-strong); color: var(--ink-soft); cursor: pointer; display: grid; place-items: center; }
.mk-modal-head .close:hover { background: rgba(255,255,255,0.08); color: var(--ink); }
.mk-modal-body { padding: 22px 20px; overflow-y: auto; flex: 1; }
.mk-modal-hero { display: flex; gap: 18px; align-items: center; padding: 18px; border-radius: var(--r-lg); background: rgba(255,255,255,0.02); border: 1px solid var(--line); position: relative; overflow: hidden; }
.mk-modal-hero .badge { width: 96px; height: 96px; flex-shrink: 0; }
.mk-modal-hero .badge svg { width: 100%; height: 100%; }
.mk-modal-hero .name { font-family: var(--f-display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; }
.mk-modal-hero .mint { font-family: var(--f-mono); font-size: 12px; color: var(--ink-mute); margin-top: 4px; letter-spacing: 0.06em; }
.mk-modal-hero .owner { font-family: var(--f-mono); font-size: 11px; color: var(--ink-dim); margin-top: 6px; }

.mk-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.mk-detail { padding: 14px; background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: var(--r-md); }
.mk-detail .k { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.mk-detail .v { font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; margin-top: 5px; font-variant-numeric: tabular-nums; }
.mk-detail .v small { font-family: var(--f-mono); font-size: 11px; color: var(--ink-mute); font-weight: 500; }

.mk-detail-section { margin-top: 20px; }
.mk-detail-section .lbl { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 12px; }
/* mini downline preview */
.mk-tree-mini { height: 130px; background: radial-gradient(300px 130px at 50% 0%, rgba(107,227,214,0.05), transparent 60%); border: 1px solid var(--line); border-radius: var(--r-md); position: relative; overflow: hidden; }
.mk-tree-mini svg { width: 100%; height: 100%; }
/* listing history */
.mk-history { display: grid; gap: 0; }
.mk-history-row { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px dashed var(--line); }
.mk-history-row:first-child { border-top: 0; }
.mk-history-row .dot { width: 8px; height: 8px; border-radius: 50%; margin: 0 auto; }
.mk-history-row .dot.mint { background: var(--accent); }
.mk-history-row .dot.list { background: var(--warning); }
.mk-history-row .dot.sale { background: var(--success); }
.mk-history-row .ev { font-size: 13px; color: var(--ink); }
.mk-history-row .meta { font-family: var(--f-mono); font-size: 10px; color: var(--ink-mute); }
.mk-history-row .amt { font-family: var(--f-mono); font-size: 12px; color: var(--ink-soft); font-weight: 600; }

/* fee breakdown */
.mk-fees { margin-top: 18px; padding: 14px 16px; background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: var(--r-md); }
.mk-fees .row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 13px; }
.mk-fees .row .k { color: var(--ink-soft); }
.mk-fees .row .v { font-family: var(--f-mono); color: var(--ink); font-weight: 600; }
.mk-fees .row.total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 12px; }
.mk-fees .row.total .v { color: var(--accent); font-size: 16px; }
.mk-fees .note { font-family: var(--f-mono); font-size: 10px; color: var(--ink-dim); margin-top: 8px; letter-spacing: 0.04em; line-height: 1.5; }

/* sticky buy in modal */
.mk-modal-foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom,0px)); border-top: 1px solid var(--line); flex-shrink: 0; background: var(--bg-2); }
.mk-modal-foot .own-warning { display: none; margin-bottom: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255,90,106,0.08); border: 1px solid rgba(255,90,106,0.25); color: #FFB3BA; font-size: 12.5px; line-height: 1.4; align-items: flex-start; gap: 8px; }
.mk-modal-foot .own-warning.show { display: flex; }
.mk-modal-foot .own-warning svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }
.mk-buy-now { width: 100%; min-height: 52px; border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--accent), #4FD0E8); color: #04221F; font-family: var(--f-display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 8px 28px rgba(107,227,214,0.28); transition: 0.15s; }
.mk-buy-now:hover { transform: translateY(-1px); }
.mk-buy-now:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.mk-buy-now .spinner { width: 18px; height: 18px; border: 2px solid rgba(4,34,31,0.3); border-top-color: #04221F; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ List-your-NFT modal ============ */
.mk-list-form { display: grid; gap: 16px; }
.mk-list-field label { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); display: block; margin-bottom: 8px; }
.mk-price-input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: rgba(255,255,255,0.04); border: 1px solid var(--line-strong); border-radius: var(--r-md); }
.mk-price-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(107,227,214,0.1); }
.mk-price-input input { flex: 1; background: transparent; border: 0; color: var(--ink); font-family: var(--f-display); font-weight: 700; font-size: 24px; outline: none; min-width: 0; }
.mk-price-input .cur { font-family: var(--f-mono); font-size: 13px; color: var(--ink-mute); }
.mk-floor-note { font-family: var(--f-mono); font-size: 11px; color: var(--ink-mute); margin-top: 8px; letter-spacing: 0.02em; }
.mk-floor-note.error { color: var(--danger); }
.mk-floor-note b { color: var(--accent); }

/* ============ confetti reveal ============ */
.mk-reveal { position: fixed; inset: 0; z-index: 100; background: radial-gradient(800px 600px at 50% 30%, #10173A, var(--bg-0) 70%); display: none; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px; text-align: center; }
.mk-reveal.open { display: flex; animation: reveal-fade 0.4s ease-out; }
@keyframes reveal-fade { from { opacity: 0; } to { opacity: 1; } }
.mk-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.mk-confetti span { position: absolute; top: -10px; width: 8px; height: 8px; border-radius: 2px; opacity: 0; animation: confetti-fall linear forwards; }
@keyframes confetti-fall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(110vh) rotate(720deg); } }
.mk-reveal-inner { position: relative; z-index: 2; max-width: 420px; }
.mk-reveal .badge { width: 180px; height: 180px; margin: 0 auto 24px; position: relative; }
.mk-reveal .badge svg { width: 100%; height: 100%; }
.mk-reveal .badge::before { content:""; position:absolute; inset:-20px; border-radius:50%; background: radial-gradient(circle, rgba(107,227,214,0.2), transparent 65%); animation: badge-breathe 3s ease-in-out infinite; }
@keyframes badge-breathe { 0%,100% { opacity:0.5; transform:scale(1); } 50% { opacity:1; transform:scale(1.08); } }
.mk-reveal h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(26px,7vw,38px); letter-spacing: -0.03em; margin: 0 0 12px; }
.mk-reveal h1 .accent { background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mk-reveal p { color: var(--ink-soft); font-size: 15px; line-height: 1.5; margin: 0 0 28px; }
.mk-reveal .btn { width: 100%; min-height: 52px; font-size: 15px; }

/* ============ Desktop: modal becomes side panel ============ */
@media (min-width: 768px) {
  .mk-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1080px) {
  .mk-grid { grid-template-columns: 1fr 1fr 1fr; }
  .mk-modal-backdrop { align-items: stretch; justify-content: flex-end; }
  .mk-modal { max-width: 460px; max-height: 100vh; height: 100vh; border-radius: 0; border-top: 0; border-right: 0; animation: panel-in 0.28s cubic-bezier(0.2,0.7,0.3,1); }
  @keyframes panel-in { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
}

/* tablet/desktop: detail-grid 2-col stays, fee note */
@media (max-width: 420px) {
  .nft-stats { gap: 6px; }
  .mk-detail-grid { grid-template-columns: 1fr; }
  .mk-mine { flex-wrap: wrap; }
  .mk-mine .act { width: 100%; }
  .mk-mine .act .btn { width: 100%; }
}

/* ============ RTL ============ */
[dir="rtl"] .mk-lang-menu { right: auto; left: 0; }
[dir="rtl"] .mk-back svg { transform: scaleX(-1); }
[dir="rtl"] .nft-price .v small, [dir="rtl"] .mono, [dir="rtl"] .nft-stat .v, [dir="rtl"] .mk-detail .v { direction: ltr; }
[dir="rtl"] .mk-tree-mini { direction: ltr; }
[dir="rtl"][lang="fa"] body { font-family: var(--f-fa); }
[dir="rtl"][lang="ar"] body { font-family: var(--f-ar); }
@media (min-width: 1080px) {
  [dir="rtl"] .mk-modal-backdrop { justify-content: flex-start; }
  [dir="rtl"] .mk-modal { border-right: 1px solid var(--line-strong); border-left: 0; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } .mk-confetti { display: none; } }

/* focus */
.mk-chip:focus-visible, .nft:focus-visible, .nft-buy:focus-visible, .mk-buy-now:focus-visible, .mk-back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
