/* ============================================================================
   Meyo SKY2 - Global -- Player Market (Web Shop / Web Storage / My Trades)
   Loaded after core.css + meyo.css; uses the --my-* tokens from meyo.css.
   Class names emitted by js/rmt.js and the page scripts are kept stable.
   ========================================================================== */

.mk-page strong { font-weight: 700; }
.mk-page em { font-style: italic; }

/* ------------------------------------------------------------------ hero -- */
.mk-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 56px 0 0;
  border-bottom: 1px solid var(--my-line);
  background:
    url("/assets/brand/sky.svg") center bottom / cover no-repeat,
    radial-gradient(760px 320px at 12% -6%, rgba(111, 123, 255, .30), transparent 62%),
    radial-gradient(640px 300px at 90% 6%, rgba(56, 208, 255, .20), transparent 60%),
    /* ART HOOK: /assets/brand/hero-bg.jpg (2560x1080). To use it, replace the next line with:
       url("/assets/brand/hero-bg.jpg") center 30% / cover no-repeat; */
    linear-gradient(180deg, #0b1533 0%, #081026 60%, #060a16 100%);
}
/* hand-placed stars */
.mk-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .75;
  background-image:
    radial-gradient(1.4px 1.4px at 7% 20%, #eaf6ff, transparent 60%),
    radial-gradient(1px 1px at 18% 62%, #bfe9ff, transparent 60%),
    radial-gradient(1.2px 1.2px at 31% 12%, #ffffff, transparent 60%),
    radial-gradient(1px 1px at 44% 38%, #c3b8ff, transparent 60%),
    radial-gradient(1.6px 1.6px at 57% 16%, #8ee6ff, transparent 60%),
    radial-gradient(1px 1px at 69% 50%, #eaf6ff, transparent 60%),
    radial-gradient(1.3px 1.3px at 81% 24%, #ffffff, transparent 60%),
    radial-gradient(1px 1px at 94% 58%, #bfe9ff, transparent 60%),
    radial-gradient(1.1px 1.1px at 38% 70%, #c3b8ff, transparent 60%);
}
/* fade the mountains into the page */
.mk-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 10, 22, 0), rgba(6, 10, 22, .82));
}
.mk-hero-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-bottom: 34px; }
.mk-hero-copy { flex: 1 1 auto; min-width: 0; max-width: 640px; }
.mk-title {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px;
  margin: 8px 0 12px; font-family: var(--my-head); font-weight: 700;
  font-size: clamp(2.15rem, 5.2vw, 3.2rem); line-height: 1.02; letter-spacing: .03em;
  text-transform: uppercase; color: #f2f6ff;
}
.mk-title > span:first-child {
  background: linear-gradient(180deg, #ffffff 0%, #d8f3ff 55%, #8ee6ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 26px rgba(56, 208, 255, .28));
}
.mk-region {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px 5px 11px; border-radius: 999px;
  border: 1px solid rgba(62, 230, 176, .38); background: rgba(62, 230, 176, .08);
  color: var(--my-mint-lt); font-size: .86rem; letter-spacing: .14em;
}
.mk-region::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--my-mint); box-shadow: 0 0 10px var(--my-mint); }
.mk-region[hidden] { display: none; }
.mk-lead { margin: 0; max-width: 580px; color: var(--my-text-dim); font-size: 1.02rem; line-height: 1.7; }

.mk-chips { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.mk-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px;
  border: 1px solid var(--my-line-strong); background: rgba(10, 18, 40, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: .82rem; font-weight: 600; color: #c9d4ee;
}
.mk-chip svg { width: 16px; height: 16px; flex: none; color: var(--my-accent-lt); }

/* orbit emblem (shop + storage) */
.mk-emblem { position: relative; flex: none; width: 250px; height: 250px; margin-right: 8px; }
.mk-ring { position: absolute; border-radius: 50%; }
.mk-ring-1 { inset: 0; border: 1px solid rgba(142, 230, 255, .16); background: radial-gradient(circle, rgba(56, 208, 255, .12), transparent 64%); }
.mk-ring-2 { inset: 30px; border: 1px dashed rgba(155, 140, 255, .38); animation: mkSpin 48s linear infinite; }
.mk-ring-2::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--my-violet-lt); box-shadow: 0 0 12px var(--my-violet); }
.mk-ring-3 { inset: 62px; border: 1px solid rgba(56, 208, 255, .42); box-shadow: 0 0 40px rgba(56, 208, 255, .18), inset 0 0 30px rgba(56, 208, 255, .12); animation: mkSpin 30s linear infinite reverse; }
.mk-ring-3::before { content: ""; position: absolute; bottom: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--my-accent-lt); box-shadow: 0 0 10px var(--my-accent); }
.mk-emblem-core {
  position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px;
  filter: drop-shadow(0 0 22px rgba(56, 208, 255, .55)); animation: mkFloat 6s ease-in-out infinite;
}
.mk-spark { position: absolute; width: 8px; height: 8px; transform: rotate(45deg); background: var(--my-accent-grad); box-shadow: 0 0 10px rgba(56, 208, 255, .75); animation: mkTwinkle 3.4s ease-in-out infinite; }
.mk-spark-1 { top: 22px; right: 36px; }
.mk-spark-2 { bottom: 34px; left: 18px; width: 6px; height: 6px; animation-delay: 1.1s; }
.mk-spark-3 { top: 104px; left: -6px; width: 5px; height: 5px; animation-delay: 2.2s; background: var(--my-violet-lt); }

/* ART HOOK (shop.html): /assets/brand/hero-character.png (1024x1280, transparent).
   Uncomment the <img class="mk-hero-char"> line in shop.html; the emblem hides itself. */
.mk-hero-char { position: relative; flex: none; align-self: flex-end; width: 300px; height: auto; margin: -24px 0 -34px; filter: drop-shadow(0 22px 40px rgba(0, 0, 0, .55)); pointer-events: none; }
.mk-hero-char ~ .mk-emblem { display: none; }

/* trade-flow card (trades hero) */
.mk-flow {
  flex: none; width: 350px; padding: 18px 20px 20px; border-radius: 18px;
  background: rgba(10, 18, 40, .62); border: 1px solid var(--my-line-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.mk-flow-title { font-family: var(--my-head); font-weight: 700; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--my-violet-lt); margin-bottom: 14px; }
.mk-flow-list { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.mk-flow-list::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--my-accent), var(--my-violet)); opacity: .38; }
.mk-flow-list li { position: relative; display: flex; align-items: flex-start; gap: 13px; }
.mk-flow-n {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font: 700 .86rem/1 var(--my-head); color: var(--my-accent-ink); background: var(--my-accent-grad);
  box-shadow: 0 0 0 4px rgba(10, 18, 40, .95), 0 0 14px rgba(56, 208, 255, .45);
}
.mk-flow-txt { min-width: 0; padding-top: 1px; }
.mk-flow-t { display: block; font-family: var(--my-head); font-weight: 700; font-size: .98rem; letter-spacing: .07em; text-transform: uppercase; color: #f2f6ff; line-height: 1.2; }
.mk-flow-d { display: block; margin-top: 2px; font-size: .8rem; line-height: 1.45; color: var(--my-text-dim); }

/* market tabs, sitting on the hero's bottom edge */
.mk-tabs { position: relative; display: flex; gap: 6px; }
.mk-tab {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 0;
  padding: 13px 22px 14px; margin-bottom: -1px; border-radius: 14px 14px 0 0;
  border: 1px solid var(--my-line); border-bottom: none;
  background: rgba(10, 18, 40, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: var(--my-head); font-weight: 700; font-size: .95rem; letter-spacing: .1em; text-transform: uppercase;
  color: #9fb0d4; text-decoration: none; white-space: nowrap;
  transition: color .18s, background .18s, border-color .18s;
}
.mk-tab span { overflow: hidden; text-overflow: ellipsis; }
.mk-tab svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.mk-tab:hover { color: #f2f6ff; background: rgba(56, 208, 255, .09); }
.mk-tab.active { color: #f2f6ff; background: linear-gradient(180deg, rgba(22, 36, 72, .96), var(--my-bg)); border-color: rgba(56, 208, 255, .34); }
.mk-tab.active svg { color: var(--my-accent); opacity: 1; filter: drop-shadow(0 0 6px rgba(56, 208, 255, .6)); }
.mk-tab.active::before { content: ""; position: absolute; left: 16px; right: 16px; top: -1px; height: 2px; border-radius: 2px; background: var(--my-accent-grad); box-shadow: 0 0 12px rgba(56, 208, 255, .85); }

@keyframes mkSpin { to { transform: rotate(360deg); } }
@keyframes mkFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes mkTwinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* ------------------------------------------------------------ page shell -- */
.rmt-wrap { max-width: 1240px; margin: 0 auto; padding: 28px 24px 72px; box-sizing: border-box; }

.rmt-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin: 0 0 22px; padding: 14px 16px; border-radius: var(--my-radius);
  background: var(--my-panel); border: 1px solid var(--my-line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 18px 40px rgba(0, 0, 0, .25);
}
.rmt-toolbar label { color: var(--my-text-mute); font-size: .8rem; }
.rmt-spacer { flex: 1; }

/* shared field look (toolbar + modal) */
.rmt-toolbar select, .rmt-toolbar input,
.rmt-modal input, .rmt-modal select, .rmt-modal textarea {
  box-sizing: border-box; width: 100%; height: 44px; padding: 0 14px;
  background-color: rgba(6, 11, 26, .72); border: 1px solid var(--my-line-strong); border-radius: 12px;
  color: var(--my-text); font: 500 .92rem/1.2 var(--my-font);
  transition: border-color .18s, box-shadow .18s, background-color .18s;
}
.rmt-toolbar input::placeholder, .rmt-modal input::placeholder { color: var(--my-text-mute); }
.rmt-toolbar select:focus, .rmt-toolbar input:focus,
.rmt-modal input:focus, .rmt-modal select:focus, .rmt-modal textarea:focus {
  outline: none; border-color: rgba(56, 208, 255, .62); background-color: rgba(8, 15, 34, .9);
  box-shadow: 0 0 0 3px rgba(56, 208, 255, .16);
}
.rmt-toolbar select, .rmt-modal select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238ee6ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
.rmt-toolbar select option, .rmt-modal select option { background: var(--my-panel-solid); color: var(--my-text); }

/* character chip ("Buying as" / "Character") */
.rmt-char {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-width: 0;
  padding: 4px 4px 4px 8px; border-radius: 999px;
  border: 1px solid rgba(155, 140, 255, .3); background: rgba(155, 140, 255, .08);
}
.rmt-char-ico { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--my-accent-ink); background: linear-gradient(135deg, var(--my-violet-lt), var(--my-violet)); }
.rmt-char-ico svg { width: 16px; height: 16px; }
.rmt-toolbar .rmt-char label { flex: none; font-family: var(--my-head); font-weight: 700; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--my-violet-lt); white-space: nowrap; }
.rmt-toolbar .rmt-char select {
  width: auto; min-width: 150px; max-width: 240px; height: 36px; border-radius: 999px;
  background-color: rgba(6, 11, 26, .6); border-color: rgba(155, 140, 255, .28); font-weight: 600;
}

/* shop filters */
.rmt-filters { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 18px 18px; }
.rmt-filters-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--my-line); }
.rmt-filters-hint { font-family: var(--my-head); font-weight: 700; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--my-text-mute); }
.rmt-filter-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rmt-filter-row > select { flex: 1 1 150px; width: auto; }
.rmt-search { position: relative; flex: 2 1 240px; min-width: 0; }
.rmt-search svg { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; margin-top: -8.5px; color: var(--my-text-mute); pointer-events: none; }
.rmt-toolbar .rmt-search input { padding-left: 42px; }
.rmt-range {
  flex: 1 1 230px; min-width: 0; display: flex; align-items: center; gap: 4px; height: 44px; box-sizing: border-box;
  padding: 0 6px 0 14px; border-radius: 12px; border: 1px solid var(--my-line-strong); background: rgba(6, 11, 26, .72);
  transition: border-color .18s, box-shadow .18s;
}
.rmt-range:focus-within { border-color: rgba(56, 208, 255, .62); box-shadow: 0 0 0 3px rgba(56, 208, 255, .16); }
.rmt-range-lbl { flex: none; margin-right: 4px; font-family: var(--my-head); font-weight: 700; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--my-text-mute); }
.rmt-range-sep { flex: none; color: var(--my-text-mute); }
.rmt-toolbar .rmt-range input { flex: 1 1 0; min-width: 0; height: 40px; padding: 0 8px; border: none; background: transparent; box-shadow: none; }
.rmt-toolbar .rmt-range input:focus { box-shadow: none; background: transparent; }
.rmt-filter-row > .btn-go { flex: none; min-height: 44px; }

/* --------------------------------------------------------------- buttons -- */
.btn-go {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box;
  min-height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  background: var(--my-accent-grad); color: var(--my-accent-ink);
  font-family: var(--my-head); font-weight: 700; font-size: .95rem; line-height: 1.1; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: 0 8px 22px rgba(47, 143, 255, .3);
  transition: transform .18s, filter .18s, box-shadow .18s, background .18s, border-color .18s, color .18s;
}
.btn-go svg { width: 16px; height: 16px; flex: none; }
.btn-go:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: var(--my-glow); }
.btn-go:active { transform: translateY(0); }
.btn-go.ghost { background: rgba(170, 196, 255, .04); border-color: var(--my-line-strong); color: var(--my-text); box-shadow: none; }
.btn-go.ghost:hover { filter: none; border-color: rgba(56, 208, 255, .6); background: rgba(56, 208, 255, .08); color: #fff; }
.btn-go.danger { background: rgba(255, 107, 139, .12); border-color: rgba(255, 107, 139, .45); color: #ffb3c3; box-shadow: none; }
.btn-go.danger:hover { filter: none; background: rgba(255, 107, 139, .2); border-color: rgba(255, 107, 139, .75); color: #fff; box-shadow: 0 8px 22px rgba(255, 107, 139, .2); }
.btn-go:disabled, .btn-go:disabled:hover { opacity: .45; cursor: not-allowed; transform: none; filter: grayscale(.3); box-shadow: none; }

/* ----------------------------------------------------------------- cards -- */
.rmt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.rmt-card {
  --rmt-edge: rgba(56, 208, 255, .6); --rmt-glow: rgba(56, 208, 255, .13);
  position: relative; display: flex; flex-direction: column; gap: 11px; min-width: 0; overflow: hidden;
  padding: 18px; border-radius: var(--my-radius); border: 1px solid var(--my-line);
  background:
    radial-gradient(240px 170px at 100% 0%, var(--rmt-glow), transparent 70%),
    linear-gradient(180deg, rgba(20, 32, 64, .84) 0%, rgba(11, 18, 38, .9) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 14px 34px rgba(0, 0, 0, .28);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.rmt-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--rmt-edge), transparent); opacity: .75; pointer-events: none; }
.rmt-card:hover { border-color: rgba(56, 208, 255, .42); transform: translateY(-3px); box-shadow: 0 20px 44px rgba(0, 0, 0, .4), 0 0 0 1px rgba(56, 208, 255, .1); }
.rmt-card[data-state="STORED"] { --rmt-edge: rgba(62, 230, 176, .65); --rmt-glow: rgba(62, 230, 176, .1); }
.rmt-card[data-state="ESCROW"], .rmt-card[data-state="PULLING"] { --rmt-edge: rgba(255, 180, 84, .65); --rmt-glow: rgba(255, 180, 84, .08); }

.rmt-cardhead { display: flex; align-items: center; gap: 14px; min-width: 0; }
.rmt-cardhead-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.rmt-card .rmt-title { font-family: var(--my-head); font-weight: 700; font-size: 1.14rem; line-height: 1.2; letter-spacing: .01em; color: #f2f6ff; overflow-wrap: anywhere; }
.rmt-sub { display: flex; flex-wrap: wrap; gap: 6px; }

/* item icon frame (same 2D icon the player sees in game) */
.rmt-icon-wrap {
  position: relative; flex: none; width: 60px; height: 60px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 36%, rgba(56, 208, 255, .22), rgba(9, 15, 32, .96) 68%);
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, .35), 0 6px 16px rgba(0, 0, 0, .35);
}
.rmt-icon-wrap::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(142, 230, 255, .8), rgba(142, 230, 255, .12) 38%, rgba(155, 140, 255, .12) 62%, rgba(155, 140, 255, .75));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.rmt-icon { position: relative; z-index: 1; max-width: 44px; max-height: 44px; image-rendering: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.rmt-icon-ph::before { content: ""; width: 28px; height: 28px; background: url("/assets/brand/mark.svg") center / contain no-repeat; opacity: .3; }
.rmt-icon-stack {
  position: absolute; right: -5px; bottom: -5px; z-index: 2; min-width: 20px; height: 20px; box-sizing: border-box;
  padding: 0 6px; border-radius: 999px; text-align: center; pointer-events: none;
  font: 700 .7rem/18px var(--my-font); color: var(--my-accent-lt);
  background: rgba(4, 9, 22, .94); border: 1px solid rgba(56, 208, 255, .38);
}
.rmt-icon-stack.rmt-icon-xp { color: var(--my-mint-lt); background: rgba(5, 36, 30, .94); border-color: rgba(62, 230, 176, .45); }

.rmt-card .rmt-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-width: 0; color: var(--my-text-dim); font-size: .86rem; }
.rmt-card .rmt-line.rmt-upg-row { justify-content: flex-start; flex-wrap: wrap; gap: 6px; }
.rmt-upg { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 8px; border: 1px solid transparent; font: 700 .76rem/1.25 var(--my-font); letter-spacing: .02em; }
.rmt-upg-enc { color: var(--my-accent-lt); background: rgba(56, 208, 255, .12); border-color: rgba(56, 208, 255, .3); }
.rmt-upg-com { color: #b4c3ff; background: rgba(111, 123, 255, .14); border-color: rgba(111, 123, 255, .34); }
.rmt-upg-ref { color: var(--my-violet-lt); background: rgba(155, 140, 255, .14); border-color: rgba(155, 140, 255, .34); }
.rmt-upg-xp { color: var(--my-mint-lt); background: rgba(62, 230, 176, .12); border-color: rgba(62, 230, 176, .3); }
.rmt-sockets { display: inline-flex; align-items: center; gap: 7px; color: var(--my-violet-lt); font-size: .8rem; font-weight: 600; }
.rmt-sockets::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); border: 1.5px solid currentColor; border-radius: 2px; box-shadow: 0 0 6px rgba(155, 140, 255, .6); }

/* seller / owner line */
.rmt-seller { color: var(--my-accent-lt); font-weight: 600; }
.rmt-card .rmt-line.rmt-seller-line { flex-wrap: wrap; row-gap: 8px; }
.rmt-who { flex: 1 1 128px; display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.rmt-avatar {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center;
  font: 700 .92rem/1 var(--my-head); color: var(--my-accent-ink); background: var(--my-accent-grad);
  box-shadow: 0 0 0 2px rgba(6, 10, 22, .9), 0 0 0 3px rgba(56, 208, 255, .32);
}
.rmt-who-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.rmt-who-lbl { font-family: var(--my-head); font-weight: 700; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--my-text-mute); }
.rmt-who .rmt-seller { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rmt-trades {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  color: var(--my-mint-lt); background: rgba(62, 230, 176, .08); border: 1px solid rgba(62, 230, 176, .24);
  font-size: .74rem; font-weight: 700; white-space: nowrap;
}
.rmt-trades::before { content: ""; width: 4px; height: 8px; margin: -2px 1px 0; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.rmt-dim { color: var(--my-text-mute); font-size: .8rem; }
.rmt-card .rmt-line.rmt-dim { color: var(--my-text-mute); font-size: .8rem; }
.rmt-card .rmt-line.rmt-note {
  display: block; padding: 8px 11px; border-radius: 10px; border: 1px dashed var(--my-line-strong);
  background: rgba(170, 196, 255, .04); color: #b9c5e0; font-style: italic; overflow-wrap: anywhere;
}
.rmt-price { font-family: var(--my-head); font-weight: 700; font-size: 1.2rem; line-height: 1.1; letter-spacing: .02em; color: var(--my-mint-lt); overflow-wrap: anywhere; }

/* card footer: price + primary action */
.rmt-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--my-line); }
.rmt-pricebox { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rmt-price-lbl { font-family: var(--my-head); font-weight: 700; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--my-text-mute); }
.rmt-card-foot .rmt-price { font-size: 1.32rem; text-shadow: 0 0 18px rgba(62, 230, 176, .25); }
.rmt-card-foot .btn-go { flex: none; min-width: 96px; }

.rmt-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid var(--my-line); }
.rmt-actions .btn-go { flex: 1 1 140px; min-height: 40px; padding: 8px 14px; font-size: .86rem; white-space: normal; text-align: center; }
.rmt-actions p { flex-basis: 100%; margin: 2px 0 0; }

/* ---------------------------------------------------------------- badges -- */
.rmt-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px;
  border: 1px solid transparent; vertical-align: middle; white-space: nowrap;
  font: 700 .72rem/1.3 var(--my-head); letter-spacing: .12em; text-transform: uppercase;
}
.rmt-badge::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.rmt-badge.rmt-ok     { color: var(--my-mint-lt);   background: rgba(62, 230, 176, .1);  border-color: rgba(62, 230, 176, .32); }
.rmt-badge.rmt-info   { color: var(--my-accent-lt); background: rgba(56, 208, 255, .1);  border-color: rgba(56, 208, 255, .32); }
.rmt-badge.rmt-warn   { color: var(--my-amber);     background: rgba(255, 180, 84, .1);  border-color: rgba(255, 180, 84, .34); }
.rmt-badge.rmt-danger { color: #ff9bb0;             background: rgba(255, 107, 139, .1); border-color: rgba(255, 107, 139, .38); }
.rmt-badge.rmt-muted  { color: var(--my-text-dim);  background: rgba(170, 196, 255, .06); border-color: var(--my-line-strong); }
.rmt-badge.rmt-muted::before { box-shadow: none; }

/* ------------------------------------------------------------ empty/pager -- */
.rmt-empty { color: var(--my-text-mute); font-style: italic; font-size: .9rem; padding: 12px 2px; }
.rmt-grid > .rmt-empty { grid-column: 1 / -1; }
.rmt-empty-panel {
  max-width: 720px; margin: 6px auto 0; padding: 50px 24px 46px; text-align: center; font-style: normal; line-height: 1.7;
  color: var(--my-text-dim); border: 1px dashed var(--my-line-strong); border-radius: 20px;
  background: radial-gradient(420px 200px at 50% 0%, rgba(56, 208, 255, .09), transparent 70%), rgba(10, 17, 34, .5);
}
.rmt-empty-panel::before { content: ""; display: block; width: 64px; height: 64px; margin: 0 auto 16px; background: url("/assets/brand/mark.svg") center / contain no-repeat; opacity: .6; filter: drop-shadow(0 0 18px rgba(56, 208, 255, .45)); }
.rmt-empty-panel strong { color: var(--my-text); }
.rmt-empty-panel .rmt-dim { display: inline-block; margin-top: 6px; }

.rmt-pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 30px 0 4px; }
.rmt-pager span {
  min-width: 96px; padding: 10px 16px; border-radius: 999px; text-align: center;
  border: 1px solid var(--my-line); background: rgba(10, 17, 34, .6);
  font-family: var(--my-head); font-weight: 700; font-size: .86rem; letter-spacing: .1em; text-transform: uppercase; color: var(--my-text-dim);
}

/* --------------------------------------------------------------- caveat --- */
/* warning box: stays amber on purpose */
.rmt-caveat {
  display: flex; align-items: flex-start; gap: 14px; margin: 0 0 22px; padding: 14px 18px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(255, 180, 84, .11), rgba(255, 180, 84, .04));
  border: 1px solid rgba(255, 180, 84, .32); color: #ffd9a6; font-size: .9rem; line-height: 1.6;
}
.rmt-caveat p { margin: 0; min-width: 0; }
.rmt-caveat strong { color: #ffe7c6; }
.rmt-caveat-ico { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--my-amber); background: rgba(255, 180, 84, .14); border: 1px solid rgba(255, 180, 84, .28); }
.rmt-caveat-ico svg { width: 17px; height: 17px; }

/* ---------------------------------------------------------------- modal --- */
.rmt-modal-bg {
  position: fixed; inset: 0; z-index: 1500; display: none; align-items: center; justify-content: center; padding: 20px;
  background: rgba(4, 7, 16, .76); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.rmt-modal-bg.open { display: flex; }
.rmt-modal {
  position: relative; box-sizing: border-box; width: 430px; max-width: 100%; max-height: calc(100vh - 40px); overflow: auto;
  padding: 26px 24px 22px; border-radius: 22px; border: 1px solid var(--my-line-strong);
  background: radial-gradient(360px 180px at 100% 0%, rgba(56, 208, 255, .1), transparent 70%), linear-gradient(180deg, #111c3a, var(--my-panel-solid));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(56, 208, 255, .08);
  animation: rmtPop .22s ease-out;
}
.rmt-modal::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; border-radius: 2px; background: var(--my-accent-grad); opacity: .85; }
.rmt-modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.rmt-modal-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--my-accent-ink); background: var(--my-accent-grad); box-shadow: 0 8px 20px rgba(47, 143, 255, .35); }
.rmt-modal-ico svg { width: 20px; height: 20px; }
.rmt-modal h3 { margin: 0; font-family: var(--my-head); font-weight: 700; font-size: 1.35rem; letter-spacing: .05em; text-transform: uppercase; color: #f2f6ff; }
.rmt-modal-item {
  display: flex; align-items: center; gap: 14px; min-height: 40px; margin-bottom: 18px; padding: 10px 12px;
  border-radius: 14px; border: 1px solid var(--my-line); background: rgba(170, 196, 255, .04); color: var(--my-text-dim); font-size: .86rem;
}
.rmt-modal-item-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rmt-modal-item strong { color: #f2f6ff; font-family: var(--my-head); font-size: 1.08rem; overflow-wrap: anywhere; }
.rmt-modal .form-group { margin-bottom: 14px; }
.rmt-modal label { display: block; margin-bottom: 7px; font-family: var(--my-head); font-weight: 700; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--my-text-mute); }
.rmt-modal .rmt-modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.rmt-modal .rmt-modal-actions .btn-go { flex: 1; }
@keyframes rmtPop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------- My Trades dashboard -- */
.rmt-deskbar { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; }
.rmt-deskbar .rmt-caveat { flex: 1; margin: 0; }
.rmt-deskbar > .btn-go { flex: none; }

.rmt-quad { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rmt-box {
  position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 260px; overflow: hidden;
  border-radius: 18px; border: 1px solid var(--my-line); background: var(--my-panel);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 18px 44px rgba(0, 0, 0, .28);
  transition: border-color .2s, box-shadow .2s;
}
.rmt-box-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  border-bottom: 1px solid var(--my-line); background: linear-gradient(180deg, rgba(56, 208, 255, .06), rgba(56, 208, 255, 0));
}
.rmt-box-ico { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--my-accent-lt); background: rgba(56, 208, 255, .1); border: 1px solid rgba(56, 208, 255, .24); }
.rmt-box-ico svg { width: 17px; height: 17px; }
#box-history .rmt-box-ico { color: var(--my-violet-lt); background: rgba(155, 140, 255, .1); border-color: rgba(155, 140, 255, .26); }
#box-selling .rmt-box-ico { color: var(--my-mint-lt); background: rgba(62, 230, 176, .1); border-color: rgba(62, 230, 176, .26); }
.rmt-box-head h2 { flex: 1; min-width: 0; margin: 0; font-family: var(--my-head); font-weight: 700; font-size: 1.08rem; letter-spacing: .08em; text-transform: uppercase; color: #f2f6ff; }
.rmt-box-head .rmt-count { flex: none; padding: 2px 10px; border-radius: 999px; border: 1px solid rgba(56, 208, 255, .3); background: rgba(56, 208, 255, .12); color: var(--my-accent-lt); font: 700 .74rem/1.5 var(--my-font); white-space: nowrap; }
.rmt-box-head .rmt-count:empty { display: none; }
.rmt-box-scrollbtns { flex: none; display: flex; gap: 6px; }
.rmt-box-scrollbtns button {
  width: 30px; height: 30px; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--my-line-strong); background: rgba(170, 196, 255, .05); color: var(--my-text-dim);
  transition: border-color .18s, background .18s, color .18s;
}
.rmt-box-scrollbtns button svg { width: 12px; height: 12px; }
.rmt-box-scrollbtns button:hover { border-color: rgba(56, 208, 255, .6); background: rgba(56, 208, 255, .1); color: #fff; }
.rmt-box-scrollbtns button:disabled { opacity: .35; cursor: default; }
.rmt-box-body { flex: 1; max-height: 360px; overflow-y: auto; padding: 14px 16px; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: rgba(142, 230, 255, .25) transparent; }
.rmt-box-body::-webkit-scrollbar { width: 8px; }
.rmt-box-body::-webkit-scrollbar-thumb { background: rgba(142, 230, 255, .22); border-radius: 8px; }

/* Sales box pulses when a seller-facing notification arrives */
.rmt-box.flash { border-color: rgba(56, 208, 255, .7); animation: rmtFlash 1s ease-in-out 6; }
@keyframes rmtFlash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56, 208, 255, 0), 0 18px 44px rgba(0, 0, 0, .28); }
  50% { box-shadow: 0 0 0 3px rgba(56, 208, 255, .55), 0 0 42px rgba(56, 208, 255, .35); }
}
.rmt-box-head .rmt-dot { flex: none; display: none; width: 9px; height: 9px; border-radius: 50%; background: var(--my-rose); box-shadow: 0 0 10px var(--my-rose); animation: rmtPulse 1s infinite; }
.rmt-box.flash .rmt-box-head .rmt-dot { display: inline-block; }
@keyframes rmtPulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* transaction rows */
.rmt-row {
  --rmt-edge: rgba(170, 196, 255, .28);
  position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
  margin-bottom: 10px; padding: 12px 14px 12px 18px; border-radius: 14px;
  border: 1px solid var(--my-line); background: rgba(170, 196, 255, .035);
  transition: border-color .18s, background .18s;
}
.rmt-row::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--rmt-edge); box-shadow: 0 0 10px var(--rmt-edge); }
.rmt-row:hover { border-color: var(--my-line-strong); background: rgba(170, 196, 255, .06); }
.rmt-row[data-state="PENDING_ACCEPT"], .rmt-row[data-state="PAID"] { --rmt-edge: rgba(255, 180, 84, .8); }
.rmt-row[data-state="ACCEPTED"] { --rmt-edge: rgba(56, 208, 255, .85); }
.rmt-row[data-state="COMPLETED"] { --rmt-edge: rgba(62, 230, 176, .8); }
.rmt-row[data-state="DISPUTED"] { --rmt-edge: rgba(255, 107, 139, .85); }
.rmt-row .rmt-row-main { flex: 1 1 220px; min-width: 0; }
.rmt-row .rmt-row-main .t { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; color: #f2f6ff; font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }
.rmt-row .rmt-row-main .s { margin-top: 5px; color: var(--my-text-dim); font-size: .8rem; line-height: 1.5; overflow-wrap: anywhere; }
.rmt-row-price { color: var(--my-mint-lt); font-weight: 700; }
.rmt-row .rmt-row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rmt-row .rmt-row-actions .btn-go { min-height: 36px; padding: 0 14px; font-size: .82rem; }

/* notifications */
.rmt-notif {
  position: relative; margin-bottom: 8px; padding: 11px 14px 11px 18px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--my-line); background: rgba(170, 196, 255, .035);
  transition: border-color .18s, background .18s, opacity .18s;
}
.rmt-notif::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: rgba(170, 196, 255, .22); }
.rmt-notif.unread { border-color: rgba(56, 208, 255, .3); background: linear-gradient(90deg, rgba(56, 208, 255, .1), rgba(170, 196, 255, .03) 65%); }
.rmt-notif.unread::before { background: var(--my-accent); box-shadow: 0 0 10px var(--my-accent); }
.rmt-notif.unread:hover { border-color: rgba(56, 208, 255, .55); }
.rmt-notif.read { opacity: .62; }
.rmt-notif-body { color: var(--my-text); font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.rmt-notif-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; color: var(--my-text-mute); font-size: .76rem; }

/* ------------------------------------------------ live toast (bottom-left) -- */
#rmt-toast-host { position: fixed; left: 18px; bottom: 18px; z-index: 1600; display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 36px); }
.rmt-toast {
  position: relative; display: flex; align-items: center; gap: 13px; box-sizing: border-box; min-width: 280px; max-width: 380px; overflow: hidden;
  padding: 13px 16px 14px 14px; border-radius: 16px; cursor: pointer; color: var(--my-text);
  background: rgba(12, 20, 42, .95); border: 1px solid rgba(56, 208, 255, .42);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55), 0 0 32px rgba(56, 208, 255, .18);
  transform: translateX(-120%); opacity: 0;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .35s;
}
.rmt-toast.show { transform: translateX(0); opacity: 1; }
.rmt-toast::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--my-accent-grad); transform-origin: left; animation: rmtToastLife 6.5s linear forwards; }
.rmt-toast-icon { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--my-accent-ink); background: var(--my-accent-grad); box-shadow: 0 0 18px rgba(56, 208, 255, .5); animation: rmtRing 1.4s ease-in-out 2; }
.rmt-toast-icon svg { width: 18px; height: 18px; }
.rmt-toast-body { min-width: 0; font-size: .88rem; line-height: 1.45; overflow-wrap: anywhere; }
.rmt-toast-go { display: block; margin-top: 4px; font-family: var(--my-head); font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--my-accent-lt); }
@keyframes rmtToastLife { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes rmtRing { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(4deg); } }

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 980px) {
  .mk-emblem, .mk-hero-char { display: none; }
  .mk-hero-inner { flex-direction: column; align-items: stretch; gap: 26px; }
  .mk-flow { width: auto; }
}
@media (max-width: 860px) {
  .rmt-quad { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .rmt-deskbar { flex-direction: column; align-items: stretch; }
  .rmt-deskbar > .btn-go { align-self: flex-end; }
}
@media (max-width: 640px) {
  .mk-hero { padding-top: 34px; }
  .mk-hero-inner { padding-bottom: 26px; }
  .mk-lead { font-size: .95rem; }
  .mk-chips { gap: 6px; margin-top: 18px; }
  .mk-chip { padding: 6px 11px 6px 8px; font-size: .76rem; gap: 6px; }
  .mk-chip svg { width: 14px; height: 14px; }
  .rmt-filters-hint { display: none; }
  .rmt-filters-head { padding-bottom: 0; border-bottom: none; }
  .mk-tabs { gap: 4px; }
  .mk-tab { flex: 1 1 0; padding: 11px 6px 12px; font-size: .8rem; line-height: 1.15; letter-spacing: .04em; gap: 6px; white-space: normal; text-align: center; }
  .mk-tab span { overflow: visible; overflow-wrap: anywhere; }
  .mk-tab.active::before { left: 10px; right: 10px; }
  .rmt-wrap { padding: 20px 16px 56px; }
  .rmt-filters { padding: 14px; }
  .rmt-filter-row > select, .rmt-search, .rmt-range, .rmt-filter-row > .btn-go { flex: 1 1 100%; }
  .rmt-toolbar .rmt-char { width: 100%; box-sizing: border-box; }
  .rmt-toolbar .rmt-char select { flex: 1 1 auto; min-width: 0; max-width: none; }
  .rmt-toolbar > .btn-go { flex: 1 1 100%; white-space: normal; text-align: center; padding: 10px 16px; }
  .rmt-grid { grid-template-columns: 1fr; gap: 14px; }
  .rmt-box-head { padding: 12px 12px; }
  .rmt-box-body { padding: 12px; }
  .rmt-row .rmt-row-actions { width: 100%; }
  .rmt-row .rmt-row-actions .btn-go { flex: 1 1 auto; }
  #rmt-toast-host { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .rmt-toast { min-width: 0; max-width: none; }
}
@media (max-width: 420px) {
  .mk-tab svg { display: none; }
  .mk-title { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mk-ring-2, .mk-ring-3, .mk-emblem-core, .mk-spark, .rmt-toast-icon, .rmt-box.flash, .rmt-box-head .rmt-dot, .rmt-modal { animation: none; }
  .rmt-toast::after { animation: none; transform: scaleX(0); }
}
