:root {
  --bg-primary: #0a0a0f;
  --bg-card: #16161f;
  --bg-card-hover: #1a1a25;
  --bg-input: #1e1e2a;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: #d4d4e4;
  --text-muted: #b0b0c5;
  --text-dim: #7a7a90;
  --accent: #ef4444;
  --accent-light: #f87171;
  --success: #10b981;
  --radius-md: 12px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.mk-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.mk-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 24px;
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(14px) saturate(135%);
  border-bottom: 1px solid var(--border-subtle);
}
.mk-brand { display: inline-flex; align-items: baseline; font-weight: 800; letter-spacing: -0.03em; font-size: 19px; }
.mk-brand span { color: var(--accent); }
.mk-nav-links { display: flex; gap: 4px; }
.mk-nav-links a {
  padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  color: var(--text-muted); transition: background .15s, color .15s;
}
.mk-nav-links a:hover { background: rgba(255,255,255,.05); color: var(--text-primary); }
.mk-nav-links a.active { background: rgba(239,68,68,.12); color: var(--accent-light); }
.mk-signin {
  padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--border-medium); color: var(--text-secondary);
  transition: border-color .15s, color .15s;
}
.mk-signin:hover { border-color: var(--accent); color: var(--accent-light); }

.mk-wrap { max-width: 1400px; margin: 0 auto; padding: 44px 24px 80px; }

.mk-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px; font-size: 11.5px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  background: rgba(239,68,68,.18); border: 1px solid rgba(239,68,68,.5); color: #fda4af;
}
.mk-badge i {
  width: 7px; height: 7px; border-radius: 50%; background: #f87171;
  animation: mk-pulse 1.8s ease-in-out infinite;
}
@keyframes mk-pulse {
  0% { box-shadow: 0 0 0 0 rgba(239,68,68,.6); }
  70% { box-shadow: 0 0 0 7px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

.mk-head { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-end; justify-content: space-between; margin: 20px 0 30px; }
.mk-title { font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.mk-title em { font-style: italic; color: var(--accent); }
.mk-sub { margin-top: 12px; max-width: 52ch; color: var(--text-muted); font-size: 15px; line-height: 1.6; }

.mk-stats { display: flex; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card); }
.mk-stat { padding: 16px 24px; border-right: 1px solid var(--border-subtle); }
.mk-stat:last-child { border-right: 0; }
.mk-stat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.mk-stat small { display: block; margin-top: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }

.mk-facets { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; }
.mk-chip.active { border-color: rgba(239, 68, 68, .5); background: rgba(239, 68, 68, .12); color: var(--accent-light); }
.mk-chip-badge {
  margin-left: 7px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: rgba(239, 68, 68, .22); color: var(--accent-light);
}
.mk-gmodal {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(0, 0, 0, .62); backdrop-filter: blur(3px);
}
.mk-gmodal[hidden] { display: none; }
.mk-gmodal-panel {
  width: 100%; max-width: 460px; max-height: 84vh; overflow-y: auto;
  background: var(--bg-card); border: 1px solid var(--border-medium); border-radius: 16px;
  padding: 20px 22px 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.mk-gmodal-head { display: flex; align-items: center; justify-content: space-between; }
.mk-gmodal-head h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--text-primary); }
.mk-gmodal-close {
  border: 0; background: transparent; color: var(--text-dim); font-size: 26px; line-height: 1;
  cursor: pointer; padding: 0 4px;
}
.mk-gmodal-close:hover { color: var(--text-primary); }
.mk-gmodal-sub { margin: 6px 0 16px; font-size: 12.5px; color: var(--text-dim); }
.mk-gmodal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.mk-gopt {
  padding: 11px 13px; border-radius: 10px; cursor: pointer; text-align: left;
  border: 1px solid var(--border-subtle); background: var(--bg-input); color: var(--text-secondary);
  font-family: inherit; font-size: 13px; font-weight: 600;
}
.mk-gopt:hover { background: var(--bg-card-hover); border-color: var(--border-medium); }
.mk-gopt.active { border-color: rgba(239, 68, 68, .55); background: rgba(239, 68, 68, .14); color: var(--accent-light); }
@media (max-width: 480px) { .mk-gmodal-grid { grid-template-columns: 1fr; } }
.mk-facet {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px; border-radius: var(--radius-md); cursor: pointer;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  color: var(--text-secondary); font-size: 13.5px; font-weight: 600;
  font-family: inherit; transition: border-color .15s, background .15s;
}
.mk-facet:hover { background: var(--bg-card-hover); }
.mk-facet.active { border-color: rgba(239,68,68,.5); background: rgba(239,68,68,.1); color: var(--accent-light); }
.mk-facet b { font-size: 11.5px; font-weight: 700; color: var(--text-dim); }
.mk-facet.active b { color: var(--accent-light); }
.mk-ico {
  width: 22px; height: 22px; flex: 0 0 auto; border-radius: 6px; object-fit: contain;
  background: rgba(255,255,255,.05); border: 1px solid var(--border-subtle); padding: 2px;
}
.mk-facet.active .mk-ico { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.3); }
.mk-facet i {
  width: 8px; height: 8px; border-radius: 2px;
  background: currentColor; opacity: .55;
}

.mk-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 10px 12px; margin-bottom: 18px;
  background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
}
.mk-search { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; min-width: 0; }
.mk-search svg {
  width: 17px; height: 17px; flex: 0 0 auto; fill: none;
  stroke: var(--text-dim); stroke-width: 2; stroke-linecap: round;
}
.mk-search input {
  flex: 1; min-width: 0; padding: 8px 0; border: 0; background: transparent;
  color: var(--text-primary); font-family: inherit; font-size: 14px;
}
.mk-search input::placeholder { color: var(--text-dim); }
.mk-search input:focus { outline: none; }
.mk-tools { display: flex; align-items: center; gap: 8px; }
.mk-chip, .mk-select {
  padding: 8px 14px; border-radius: var(--radius-md); cursor: pointer;
  background: var(--bg-input); border: 1px solid var(--border-subtle);
  color: var(--text-secondary); font-size: 13px; font-weight: 600; font-family: inherit;
}
.mk-chip[aria-pressed="true"] { border-color: rgba(239,68,68,.5); background: rgba(239,68,68,.1); color: var(--accent-light); }
.mk-select { padding-right: 10px; }

.mk-count { margin-bottom: 14px; font-size: 13.5px; color: var(--text-muted); }
.mk-count b { color: var(--text-primary); font-weight: 700; }

.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 18px; }

.mk-card {
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  background: var(--bg-card); overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s;
}
.mk-card:hover { border-color: var(--border-medium); transform: translateY(-2px); }
.mk-card-top {
  position: relative; padding: 14px 16px; aspect-ratio: 16 / 6;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(135deg, rgba(239,68,68,.16), rgba(10,10,15,.05));
  border-bottom: 1px solid var(--border-subtle);
  background-size: cover; background-position: 50% 40%;
}
.mk-card-top::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(10,10,15,0) 0%, rgba(10,10,15,.04) 52%, rgba(10,10,15,.55) 84%, rgba(10,10,15,.88) 100%);
}
.mk-card-top > * { position: relative; z-index: 1; }
.mk-title-row { display: flex; align-items: center; gap: 9px; min-width: 0; }
.mk-title-row > span { min-width: 0; display: flex; flex-direction: column; }
.mk-title-row .mk-ico { background: rgba(0,0,0,.45); border-color: rgba(255,255,255,.14); }
.mk-game {
  font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--accent-light);
  text-shadow: 0 1px 6px rgba(0,0,0,.85);
}
.mk-game-sub { margin-top: 3px; font-size: 12px; color: var(--text-secondary); text-shadow: 0 1px 5px rgba(0,0,0,.85); }
.mk-price {
  position: absolute; top: 14px; right: 14px;
  padding: 5px 12px; border-radius: 8px; font-size: 15px; font-weight: 800;
  background: rgba(0,0,0,.62); border: 1px solid var(--border-medium);
  font-family: 'JetBrains Mono', monospace;
}
.mk-dlc {
  position: absolute; top: 54px; right: 14px;
  padding: 3px 9px; border-radius: 6px; font-size: 10.5px; font-weight: 700;
  background: rgba(239,68,68,.85); color: #fff;
}

.mk-owner { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); }
.mk-avatar { width: 30px; height: 30px; border-radius: 8px; background: var(--bg-input); flex: 0 0 auto; object-fit: cover; }
.mk-persona { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-tag { padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.mk-tag.clean { color: var(--success); border: 1px solid rgba(16,185,129,.35); }
.mk-tag.vac { color: var(--accent); border: 1px solid rgba(239,68,68,.4); }
.mk-tag.unknown { color: var(--text-dim); border: 1px solid var(--border-medium); }

.mk-specs { display: grid; grid-template-columns: 1fr 1fr; }
.mk-spec { padding: 11px 16px; border-right: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.mk-spec:nth-child(2n) { border-right: 0; }
.mk-spec dt { font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-dim); }
.mk-spec dd { margin-top: 4px; font-size: 14px; font-weight: 700; }
.mk-spec dd.dim { color: var(--text-dim); font-weight: 500; }
.mk-spec.value dt { color: var(--success); }
.mk-spec.value dd { color: var(--success); }

.mk-lib { display: flex; gap: 5px; padding: 12px 16px; align-items: center; justify-content: flex-start; }
.mk-lib img {
  flex: 0 0 34px; width: 34px; height: 16px; border-radius: 3px;
  object-fit: cover; object-position: center;
  background: var(--bg-input); border: 1px solid var(--border-subtle);
}
.mk-lib img.empty {
  background: linear-gradient(135deg, rgba(239,68,68,.16), rgba(255,255,255,.04));
}
.mk-lib span { flex: 0 0 auto; font-size: 11.5px; color: var(--text-dim); font-weight: 600; }

.mk-cta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding: 13px 16px; border-top: 1px solid var(--border-subtle);
  font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-secondary); transition: color .15s, background .15s;
}
.mk-cta:hover { background: rgba(239,68,68,.07); color: var(--accent-light); }

.mk-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 34px; }
.mk-pager button {
  padding: 9px 18px; border-radius: var(--radius-md); cursor: pointer;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  color: var(--text-secondary); font-size: 13.5px; font-weight: 600; font-family: inherit;
}
.mk-pager button:disabled { opacity: .4; cursor: not-allowed; }
.mk-pager button:not(:disabled):hover { border-color: var(--accent); color: var(--accent-light); }
.mk-pager span { font-size: 13px; color: var(--text-muted); }

.mk-msg { padding: 60px 20px; text-align: center; color: var(--text-dim); font-size: 14px; }

.mk-back {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-dim); transition: color .15s;
}
.mk-back:hover { color: var(--accent-light); }

.mk-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.mk-panel { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); }
.mk-panel + .mk-panel { margin-top: 20px; }
.mk-panel-head {
  display: flex; align-items: center; gap: 10px; padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted);
}
.mk-panel-head em { font-style: normal; color: var(--text-dim); letter-spacing: .04em; }
.mk-panel-head b { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 14px; color: var(--success); letter-spacing: 0; }

.mk-id { display: flex; align-items: center; gap: 16px; padding: 20px; }
.mk-id img, .mk-id span.mk-idavatar {
  width: 54px; height: 54px; border-radius: var(--radius-md);
  object-fit: cover; background: var(--bg-input); flex: 0 0 auto;
}
.mk-id-kicker { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.mk-id-name { margin-top: 6px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.mk-id-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.mk-id-chips span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 7px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase;
}
.mk-id-chips span svg { width: 12px; height: 12px; fill: currentColor; }
.mk-id-chips .c-type {
  background: rgba(239,68,68,.14); border: 1px solid rgba(239,68,68,.42); color: var(--accent-light);
}
.mk-id-chips .c-level {
  background: rgba(56,189,248,.12); border: 1px solid rgba(56,189,248,.38); color: #7dd3fc;
}
.mk-id-chips .c-clean {
  background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.38); color: #34d399;
}
.mk-id-chips .c-inv {
  background: rgba(250,204,21,.1); border: 1px solid rgba(250,204,21,.35); color: #fde047;
}

.mk-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; padding: 20px; }
.mk-gcard { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; background: var(--bg-input); }
.mk-gcard-img { position: relative; aspect-ratio: 92 / 43; background: var(--bg-input); }
.mk-gcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-gcard-img.empty img, .mk-item img.empty { visibility: hidden; }
.mk-gcard-img.empty {
  background: linear-gradient(135deg, rgba(239,68,68,.14), rgba(255,255,255,.03));
  display: flex; align-items: center; justify-content: center;
}
.mk-gcard-img.empty::after {
  content: attr(data-name);
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 8px; text-align: center; font-size: 12px; font-weight: 700; line-height: 1.3;
  color: var(--text-secondary); overflow: hidden;
}
.mk-item img.empty { background: linear-gradient(135deg, rgba(239,68,68,.1), rgba(255,255,255,.03)); }
.mk-gcard-img b {
  position: absolute; top: 6px; left: 6px; padding: 2px 7px; border-radius: 4px;
  font-size: 9px; font-weight: 800; letter-spacing: .08em; background: var(--accent); color: #fff;
}
.mk-gcard-body { padding: 10px 11px; }
.mk-gcard-body strong {
  display: block; font-size: 12.5px; font-weight: 600; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mk-gcard-hrs { display: block; margin-top: 5px; font-size: 12px; font-weight: 700; color: var(--text-secondary); }

.mk-invgroup { border-bottom: 1px solid var(--border-subtle); }
.mk-invgroup:last-child { border-bottom: 0; }
.mk-invhead {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 20px; cursor: pointer; text-align: left;
  background: transparent; border: 0; color: var(--text-primary);
  font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.mk-invhead:hover { background: var(--bg-card-hover); }
.mk-invhead .mk-caret { color: var(--text-dim); transition: transform .15s; }
.mk-invhead[aria-expanded="true"] .mk-caret { transform: rotate(90deg); }
.mk-invhead .mk-invpcs { margin-left: auto; font-size: 11.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-dim); }
.mk-invhead .mk-invval { font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0; color: var(--success); }
.mk-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; padding: 4px 20px 18px; }
.mk-items[hidden] { display: none; }
.mk-item { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; background: var(--bg-input); }
.mk-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; display: block; background: rgba(0,0,0,.25); }
.mk-item-body { padding: 8px 9px; }
.mk-item-body strong { display: block; font-size: 11px; font-weight: 500; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-item-body small { display: block; margin-top: 4px; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; font-weight: 600; }

.mk-buy { position: sticky; top: 86px; padding: 22px; }
.mk-buy-price { display: flex; align-items: baseline; gap: 8px; }
.mk-buy-price b { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; }
.mk-buy-price small { font-size: 12px; font-weight: 700; color: var(--text-dim); }
.mk-buy-rows { margin: 20px 0; border-top: 1px solid var(--border-subtle); }
.mk-buy-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--border-subtle); font-size: 13px;
}
.mk-buy-row span { color: var(--text-muted); }
.mk-buy-row b { font-weight: 700; }
.mk-buy-cta {
  display: block; padding: 14px; border-radius: var(--radius-md); text-align: center;
  width: 100%; border: 0; cursor: pointer; font-family: inherit;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 700;
  transition: background .15s, opacity .15s;
}
.mk-buy-cta:hover { background: var(--accent-light); }
.mk-buy-cta:disabled { cursor: wait; opacity: .7; }
.mk-payment { margin: 0 0 10px; }
.mk-payment label {
  display: block; margin-bottom: 7px; color: var(--text-muted); font-size: 11px;
  font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
}
.mk-payment-select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); background: var(--bg-input); color: var(--text-primary);
  font: 600 13px 'Inter', system-ui, sans-serif;
}
.mk-payment-select:focus { outline: 2px solid rgba(239,68,68,.42); outline-offset: 2px; }
.mk-checkout-msg { min-height: 18px; margin-top: 9px; color: var(--accent-light); font-size: 12px; line-height: 1.45; }
.mk-buy-note { margin-top: 20px; }
.mk-buy-note h3 { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted); }
.mk-buy-note ul { margin-top: 12px; list-style: none; display: grid; gap: 10px; }
.mk-buy-note li { position: relative; padding-left: 16px; font-size: 12.5px; line-height: 1.55; color: var(--text-muted); }
.mk-buy-note li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--success);
}

@media (max-width: 900px) {
  .mk-detail { grid-template-columns: 1fr; }
  .mk-buy { position: static; }
}
@media (max-width: 640px) {
  .mk-wrap { padding: 30px 16px 60px; }
  .mk-nav { padding: 12px 16px; }
  .mk-nav-links { display: none; }
  .mk-grid { grid-template-columns: 1fr; }
  .mk-stats { width: 100%; }
  .mk-stat { flex: 1; padding: 14px 16px; }
}

/* -- Email purchase modal -- */
.mk-modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px) saturate(120%);
  opacity: 0;
  transition: opacity .22s ease;
}
.mk-modal-overlay.open { opacity: 1; }
.mk-modal-overlay[hidden] { display: none; }

.mk-modal {
  position: relative;
  width: 100%; max-width: 400px;
  padding: 40px 36px 36px;
  background: linear-gradient(168deg, #1c1c2a 0%, #16161f 40%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.03) inset,
    0 1px 0 rgba(255,255,255,.04) inset,
    0 32px 100px -12px rgba(0, 0, 0, .7),
    0 0 60px -10px rgba(239,68,68,.08);
  transform: translateY(16px) scale(.96);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.mk-modal-overlay.open .mk-modal {
  transform: translateY(0) scale(1);
}

.mk-modal form {
  display: block; width: 100%;
}

.mk-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  color: #7a7a90; font-size: 18px; line-height: 1; cursor: pointer;
  transition: background .15s, color .15s;
}
.mk-modal-close:hover { background: rgba(255,255,255,.08); color: #fff; }

.mk-modal-icon {
  width: 52px; height: 52px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(239,68,68,.18), rgba(239,68,68,.06));
  border: 1px solid rgba(239,68,68,.22);
  color: #f87171;
}
.mk-modal-icon svg { width: 24px; height: 24px; }

.mk-modal-title {
  text-align: center; font-size: 22px; font-weight: 800;
  letter-spacing: -0.025em; color: #fff;
  margin-bottom: 8px;
}
.mk-modal-sub {
  text-align: center; margin: 0 auto 28px;
  font-size: 13.5px; line-height: 1.6; color: #b0b0c5;
  max-width: 30ch;
}

.mk-modal-field { margin-bottom: 16px; }
.mk-modal-label {
  display: block; margin-bottom: 7px;
  color: #b0b0c5; font-size: 11px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
}

.mk-modal-input,
.mk-modal-select {
  display: block; width: 100%; box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.08); border-radius: 12px;
  background: rgba(0,0,0,.25); color: #fff;
  font: 500 14px/1.2 'Inter', system-ui, sans-serif;
  box-shadow: 0 1px 3px rgba(0,0,0,.2) inset;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.mk-modal-input::placeholder { color: #7a7a90; }
.mk-modal-input:focus,
.mk-modal-select:focus {
  outline: none;
  border-color: rgba(239,68,68,.4);
  box-shadow: 0 1px 3px rgba(0,0,0,.2) inset, 0 0 0 3px rgba(239,68,68,.08);
}
.mk-modal-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%237a7a90' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px; cursor: pointer;
}
.mk-modal-select option { background: #16161f; color: #fff; }

.mk-modal-submit {
  display: block; width: 100%; box-sizing: border-box;
  padding: 14px 20px; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff; font: 700 14px/1 'Inter', system-ui, sans-serif;
  letter-spacing: .01em; cursor: pointer;
  box-shadow: 0 2px 12px rgba(239,68,68,.25);
  transition: box-shadow .2s, filter .2s, opacity .15s;
}
.mk-modal-submit:hover {
  box-shadow: 0 4px 24px rgba(239,68,68,.35);
  filter: brightness(1.08);
}
.mk-modal-submit:disabled { cursor: wait; opacity: .6; filter: none; box-shadow: none; }

.mk-modal-error {
  min-height: 16px; margin-top: 12px; text-align: center;
  color: #f87171; font-size: 12.5px; line-height: 1.5;
}
