/* Nyx marketplace – palette matches thewicked.dev (dark + #bc0602 accent) */

:root {
  --bg:            #101010;
  --bg-2:          #161616;
  --surface:       #1c1c1c;
  --surface-2:     #232323;
  --border:        #2e2e2e;
  --border-strong: #3d3d3d;

  --text:          #e9e9ee;
  --muted:         #9b9ba3;
  --dim:           #6f6f78;

  --accent:        #bc0602;
  --accent-hi:     #e21510;
  --accent-weak:   rgba(188, 6, 2, .28);
  --accent-glow:   rgba(188, 6, 2, .45);

  --ok:            #3fbf6a;
  --warn:          #e0a63a;

  --radius:        14px;
  --radius-sm:     10px;
  --shadow:        0 10px 30px rgba(0, 0, 0, .45);
  --nav-h:         64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1000px 600px at 15% -10%, rgba(188, 6, 2, .13), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(120, 0, 0, .08), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }

/* ------------------------------- nav ------------------------------- */

.nyx-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(16, 16, 16, .86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nyx-nav-inner {
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nyx-brand { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }

.nyx-brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--accent-hi), #6d0301);
  box-shadow: 0 0 0 1px rgba(255,255,255,.07), 0 6px 18px var(--accent-glow);
  font-weight: 800; font-size: 1.05rem; color: #fff;
}

.nyx-brand-text {
  display: flex; flex-direction: column;
  font-weight: 800; font-size: 1.05rem; letter-spacing: -.03em;
}
.nyx-brand-text small {
  font-size: .58rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--dim); margin-top: -2px;
}

.nyx-nav-links { display: flex; align-items: center; gap: .35rem; margin-right: auto; }
.nyx-nav-links a {
  padding: .45rem .8rem;
  border-radius: 999px;
  font-size: .9rem; font-weight: 500;
  color: var(--muted);
  transition: color .15s, background .15s;
}
.nyx-nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nyx-nav-links a.is-active { color: #fff; background: var(--accent-weak); }
.nyx-nav-out { color: var(--dim) !important; }

.nyx-nav-user { display: flex; align-items: center; gap: .5rem; }

.nyx-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--border-strong);
}

.nyx-userchip {
  position: relative;
  display: flex; align-items: center; gap: .5rem;
  padding: .3rem .7rem .3rem .35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  font-size: .87rem; font-weight: 500;
  user-select: none;
}
.nyx-userchip:hover { border-color: var(--border-strong); }

.nyx-dropdown {
  position: absolute; top: calc(100% + .5rem); right: 0;
  min-width: 200px; padding: .35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
}
.nyx-userchip.is-open .nyx-dropdown { display: flex; }
.nyx-dropdown a {
  padding: .5rem .65rem; border-radius: 8px;
  font-size: .87rem; color: var(--muted);
}
.nyx-dropdown a:hover { background: var(--surface-2); color: var(--text); }
.nyx-dropdown a.danger:hover { background: rgba(188, 6, 2, .18); color: #ff8b87; }

/* ------------------------------ layout ----------------------------- */

.nyx-main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }

.nyx-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap;
}
.nyx-section-head h2 { margin: 0; font-size: 1.3rem; }
.nyx-section-head p { margin: .15rem 0 0; color: var(--muted); font-size: .9rem; }

.nyx-eyebrow {
  font-size: .68rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent-hi); margin-bottom: .5rem;
}

/* ------------------------------- hero ------------------------------ */

.nyx-hero {
  position: relative; overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(188, 6, 2, .22), transparent 65%),
    linear-gradient(160deg, var(--surface), var(--bg-2));
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
}
.nyx-hero h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.9rem); margin-bottom: .6rem; }
.nyx-hero h1 em { font-style: normal; color: var(--accent-hi); }
.nyx-hero h1 br { display: none; }
.nyx-hero p { color: var(--muted); max-width: 52ch; margin-bottom: 1.4rem; }
.nyx-hero-side { margin-top: 1rem; }
.nyx-hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

.nyx-stats {
  display: flex; gap: 2rem; flex-wrap: wrap;
  padding: 1.1rem 1.35rem;
  margin: 0 0 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.nyx-stat strong { display: block; font-size: 1.35rem; letter-spacing: -.02em; }
.nyx-stat span { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); }

/* theme switcher */
.nyx-theme-toggle {
  padding: .35rem .7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.nyx-theme-toggle:hover { border-color: var(--border-strong); color: var(--text); }
.nyx-theme-toggle::before { content: '◐ '; color: var(--accent-hi); }

/* ------------------------------ buttons ---------------------------- */

.nyx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .6rem 1.05rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit; font-size: .9rem; font-weight: 600;
  cursor: pointer;
  transition: transform .12s, background .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.nyx-btn:active { transform: translateY(1px); }
.nyx-btn:disabled, .nyx-btn.is-disabled { opacity: .5; cursor: not-allowed; }

.nyx-btn-primary {
  background: linear-gradient(180deg, var(--accent-hi), #8f0401);
  color: #fff;
  border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 6px 20px var(--accent-glow);
}
.nyx-btn-primary:hover:not(:disabled) { box-shadow: 0 8px 26px var(--accent-glow); }

.nyx-btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.nyx-btn-ghost:hover { border-color: var(--border-strong); background: var(--surface-2); }

.nyx-btn-danger { background: transparent; color: #ff8b87; border-color: rgba(188, 6, 2, .5); }
.nyx-btn-danger:hover { background: rgba(188, 6, 2, .15); }

.nyx-btn-sm { padding: .38rem .7rem; font-size: .8rem; border-radius: 8px; }
.nyx-btn-block { width: 100%; }
.nyx-btn-lg { padding: .8rem 1.4rem; font-size: 1rem; }

/* ------------------------------ filters ---------------------------- */

.nyx-filters {
  display: flex; gap: .75rem; align-items: center; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.nyx-search {
  position: relative; flex: 1 1 280px; min-width: 220px;
}
.nyx-search input {
  width: 100%;
  padding: .68rem .9rem .68rem 2.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text); font: inherit; font-size: .92rem;
}
.nyx-search svg {
  position: absolute; left: .8rem; top: 50%; transform: translateY(-50%);
  color: var(--dim); pointer-events: none;
}

.nyx-chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.nyx-chip {
  padding: .42rem .85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: .82rem; font-weight: 500;
  transition: .15s;
}
.nyx-chip:hover { border-color: var(--border-strong); color: var(--text); }
.nyx-chip.is-active {
  background: var(--accent-weak);
  border-color: rgba(188, 6, 2, .6);
  color: #fff;
}

/* ---------------------------- form fields -------------------------- */

.nyx-field { margin-bottom: 1.15rem; }
.nyx-field > label,
.nyx-label {
  display: block; margin-bottom: .4rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .01em;
}
.nyx-hint { font-size: .78rem; color: var(--dim); margin-top: .35rem; }

.nyx-input, .nyx-textarea, .nyx-select {
  width: 100%;
  padding: .65rem .8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font: inherit; font-size: .92rem;
  transition: border-color .15s, box-shadow .15s;
}
.nyx-input:focus, .nyx-textarea:focus, .nyx-select:focus, .nyx-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
}
.nyx-textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.nyx-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239b9ba3' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  padding-right: 2.2rem;
}

.nyx-input-prefix { position: relative; }
.nyx-input-prefix span {
  position: absolute; left: .8rem; top: 50%; transform: translateY(-50%);
  color: var(--dim); font-weight: 600; pointer-events: none;
}
.nyx-input-prefix .nyx-input { padding-left: 1.9rem; }

.nyx-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ---------------------------- image picker ------------------------- */

.nyx-dropzone {
  position: relative;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  min-height: 220px;
  display: grid; place-items: center;
}
.nyx-dropzone:hover, .nyx-dropzone.is-drag {
  border-color: var(--accent);
  background: var(--surface-2);
}
.nyx-dropzone input[type=file] { display: none; }
.nyx-dropzone-empty svg { color: var(--dim); margin: 0 auto .6rem; }
.nyx-dropzone-empty strong { display: block; font-size: .92rem; }
.nyx-dropzone-empty span { font-size: .78rem; color: var(--dim); }
.nyx-dropzone img {
  max-height: 300px; width: auto; margin: 0 auto;
  border-radius: var(--radius-sm);
  object-fit: contain;
}
.nyx-dropzone.is-busy { opacity: .6; pointer-events: none; }

/* ------------------------------- cards ----------------------------- */

.nyx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.1rem;
}

.nyx-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.nyx-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-weak);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .5);
}

.nyx-card-media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(140deg, var(--surface-2), #141414);
  overflow: hidden;
}
.nyx-card-media img { width: 100%; height: 100%; object-fit: cover; }
.nyx-card-media .nyx-noimg,
.nyx-product-media .nyx-noimg {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: var(--dim); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
}

.nyx-badge {
  position: absolute; top: .6rem; left: .6rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
}
.nyx-badge-status { left: auto; right: .6rem; }
.nyx-badge-draft  { color: var(--warn);  border-color: rgba(224, 166, 58, .4); }
.nyx-badge-active { color: var(--ok);    border-color: rgba(63, 191, 106, .4); }
.nyx-badge-hidden { color: var(--dim); }

.nyx-card-body { padding: .85rem .9rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.nyx-card-index { display: none; }          /* catalogue numerals are a noir device */
.nyx-card-title {
  margin: 0;
  font-weight: 600; font-size: .95rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nyx-card-title a::after { content: ''; position: absolute; inset: 0; }
.nyx-card-price { font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; }
.nyx-card-foot {
  margin-top: auto; padding-top: .6rem;
  display: flex; align-items: center; gap: .45rem;
  font-size: .78rem; color: var(--muted);
  border-top: 1px solid var(--border);
}
.nyx-card-foot img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.nyx-card-store { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nyx-card-views { margin-left: auto; white-space: nowrap; color: var(--dim); }
.nyx-card-actions { display: flex; gap: .4rem; padding: 0 .9rem .9rem; position: relative; z-index: 2; }

/* ------------------------------ panels ----------------------------- */

.nyx-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
}
.nyx-panel + .nyx-panel { margin-top: 1.1rem; }
.nyx-panel h3 { font-size: 1rem; margin-bottom: .9rem; }

.nyx-empty {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--muted);
}
.nyx-empty h3 { color: var(--text); }

.nyx-alert {
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: .88rem;
  margin-bottom: 1.25rem;
}
.nyx-alert-error { border-color: rgba(188, 6, 2, .55); background: rgba(188, 6, 2, .12); color: #ffb3b0; }
.nyx-alert-ok    { border-color: rgba(63, 191, 106, .45); background: rgba(63, 191, 106, .1); color: #9de3b4; }
.nyx-alert-info  { border-color: rgba(224, 166, 58, .4);  background: rgba(224, 166, 58, .08); color: #f0cf95; }

/* --------------------------- product page -------------------------- */

.nyx-product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 2rem; }

.nyx-product-media {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(140deg, var(--surface-2), #131313);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
}
.nyx-product-media img { width: 100%; height: 100%; object-fit: contain; }

.nyx-product h1 { font-size: 1.8rem; margin-bottom: .35rem; }
.nyx-price-big {
  font-size: 2rem; font-weight: 800; letter-spacing: -.03em;
  margin: .5rem 0 1.2rem;
}

.nyx-desc { white-space: pre-wrap; color: var(--muted); line-height: 1.7; }

.nyx-seller-card {
  display: flex; align-items: center; gap: .75rem;
  padding: .8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  margin-bottom: 1.2rem;
}
.nyx-seller-card img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.nyx-seller-card strong { display: block; font-size: .92rem; }
.nyx-seller-card span { font-size: .78rem; color: var(--dim); }

.nyx-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .8rem; color: var(--dim); margin-top: 1rem; }

/* ----------------------------- storefront -------------------------- */

.nyx-store-head {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: radial-gradient(500px 240px at 90% 0%, rgba(188, 6, 2, .16), transparent 60%), var(--surface);
  margin-bottom: 1.8rem;
}
.nyx-store-head img.nyx-store-avatar {
  width: 72px; height: 72px; border-radius: 18px; object-fit: cover;
  border: 1px solid var(--border-strong);
}
.nyx-store-head h1 { font-size: 1.55rem; margin-bottom: .15rem; }
.nyx-store-head p { color: var(--muted); margin: 0; font-size: .9rem; }

/* ------------------------------ tables ----------------------------- */

.nyx-table-wrap { overflow-x: auto; }
.nyx-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px; }
.nyx-table th {
  text-align: left; padding: .6rem .7rem;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--dim); border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.nyx-table td { padding: .7rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.nyx-table tr:last-child td { border-bottom: none; }

.nyx-pill {
  display: inline-block; padding: .18rem .55rem; border-radius: 999px;
  font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  border: 1px solid var(--border);
}
.nyx-pill-paid { color: var(--ok); border-color: rgba(63, 191, 106, .4); }
.nyx-pill-pending { color: var(--warn); border-color: rgba(224, 166, 58, .4); }
.nyx-pill-failed, .nyx-pill-refunded { color: #ff8b87; border-color: rgba(188, 6, 2, .45); }

/* ---------------------------- pagination --------------------------- */

.nyx-pager { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.nyx-pager a, .nyx-pager span {
  min-width: 36px; padding: .4rem .6rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-size: .85rem; color: var(--muted);
}
.nyx-pager a:hover { border-color: var(--border-strong); color: var(--text); }
.nyx-pager .is-current { background: var(--accent-weak); border-color: rgba(188, 6, 2, .6); color: #fff; }

/* ------------------------------ footer ----------------------------- */

.nyx-footer { border-top: 1px solid var(--border); background: rgba(0, 0, 0, .3); margin-top: auto; }
.nyx-footer-inner {
  max-width: 1240px; margin: 0 auto; padding: 1.5rem 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  font-size: .84rem; color: var(--dim);
}
.nyx-footer a { color: var(--muted); }
.nyx-footer a:hover { color: var(--text); }
.nyx-footer nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }

/* ----------------------------- messages ---------------------------- */

.nyx-nav-badge {
  display: inline-block; margin-left: .35rem; padding: .05rem .35rem;
  background: var(--accent); color: #fff; border-radius: 999px;
  font-size: .68rem; font-weight: 700; line-height: 1.5;
}

.nyx-msg-layout {
  display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 1rem; align-items: start;
}

.nyx-msg-list {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden; max-height: 70vh; overflow-y: auto;
}
.nyx-msg-item {
  display: flex; align-items: center; gap: .65rem; padding: .7rem .8rem;
  border-bottom: 1px solid var(--border); transition: background .15s;
}
.nyx-msg-item:last-child { border-bottom: none; }
.nyx-msg-item:hover { background: var(--surface-2); }
.nyx-msg-item.is-active { background: var(--accent-weak); }
.nyx-msg-item img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.nyx-msg-item-body { min-width: 0; flex: 1; }
.nyx-msg-item-top { display: flex; align-items: center; gap: .4rem; }
.nyx-msg-item-top strong { font-size: .9rem; }
.nyx-msg-item-sub { font-size: .75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nyx-msg-item-prev { font-size: .74rem; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nyx-msg-badge {
  background: var(--accent); color: #fff; border-radius: 999px;
  padding: .02rem .35rem; font-size: .66rem; font-weight: 700;
}
.nyx-msg-role {
  font-size: .62rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--dim); flex: none;
}

.nyx-msg-thread {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); display: flex; flex-direction: column; min-height: 70vh;
}
.nyx-msg-head {
  display: flex; align-items: center; gap: .7rem;
  padding: .85rem 1rem; border-bottom: 1px solid var(--border);
}
.nyx-msg-head img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.nyx-msg-head strong { display: block; font-size: .95rem; }
.nyx-msg-head span { font-size: .78rem; color: var(--muted); }
.nyx-msg-head .nyx-pill { margin-left: auto; }

.nyx-msg-scroll { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.nyx-msg-placeholder { margin: auto; text-align: center; color: var(--dim); font-size: .88rem; padding: 2rem 1rem; }

.nyx-bubble-row { display: flex; }
.nyx-bubble-row.is-mine { justify-content: flex-end; }
.nyx-bubble {
  max-width: 78%; padding: .55rem .8rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px;
}
.nyx-bubble-row.is-mine .nyx-bubble { background: var(--accent-weak); border-color: rgba(188, 6, 2, .45); }
.nyx-bubble-meta { font-size: .68rem; color: var(--dim); margin-bottom: .2rem; }
.nyx-bubble-body { font-size: .9rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }

.nyx-msg-form { display: flex; gap: .5rem; padding: .8rem 1rem; border-top: 1px solid var(--border); align-items: flex-end; }
.nyx-msg-form .nyx-textarea { min-height: 64px; }

@media (max-width: 860px) {
  .nyx-msg-layout { grid-template-columns: 1fr; }
  .nyx-msg-list { max-height: 300px; }
  .nyx-msg-thread { min-height: 60vh; }
}

/* ---------------------------- setup page --------------------------- */

.nyx-sql {
  margin: 0;
  padding: 1rem;
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #cfcfd6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}

.nyx-check { display: flex; align-items: center; gap: .6rem; font-size: .85rem; }
.nyx-check-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); flex: none; }
.nyx-check-dot.is-ok { background: var(--ok); }
.nyx-check-dot.is-missing { background: var(--accent-hi); }

/* ---------------------------- responsive --------------------------- */

@media (max-width: 900px) {
  .nyx-product { grid-template-columns: 1fr; }
  .nyx-row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nyx-nav-inner { gap: .75rem; padding: 0 .9rem; }
  .nyx-brand-text small { display: none; }
  .nyx-nav-links { gap: .1rem; overflow-x: auto; scrollbar-width: none; }
  .nyx-nav-links::-webkit-scrollbar { display: none; }
  .nyx-nav-links a { padding: .4rem .6rem; font-size: .84rem; }
  .nyx-nav-out { display: none; }
  .nyx-userchip span { display: none; }
  .nyx-main { padding: 1.25rem .9rem 3rem; }
  .nyx-hero { padding: 1.75rem 1.25rem; }
  .nyx-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
  .nyx-store-head { flex-direction: column; text-align: center; }
}
