@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/JetBrainsMono-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/JetBrainsMono-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('/fonts/JetBrainsMono-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/PlusJakartaSans-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('/fonts/PlusJakartaSans-700-normal.woff2') format('woff2');
}

:root {
  --bg: #090b10;
  --card: #11141e;
  --card-2: #161b28;
  --line: #222738;
  --line-strong: #31405f;
  --cyan: #00f0ff;
  --cyan-dim: rgba(0, 240, 255, 0.14);
  --orange: #ff5e00;
  --green: #34d399;
  --blue: #38bdf8;
  --yellow: #fbbf24;
  --purple: #a78bfa;
  --text: #f4f7fb;
  --muted: #93a0b8;
  --sans: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }
body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0, 240, 255, 0.15) 1.5px, transparent 0),
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(ellipse 70% 40% at 50% -10%, rgba(0, 240, 255, 0.09), transparent 70%),
    radial-gradient(ellipse 40% 30% at 100% 20%, rgba(139, 92, 246, 0.06), transparent 60%);
  background-size:
    36px 36px,
    36px 36px,
    36px 36px,
    100% 800px,
    100% 800px;
  background-repeat:
    repeat,
    repeat,
    repeat,
    no-repeat,
    no-repeat;
}
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 28px 0 10px; }
.section h2, .block-title {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.lede { margin: 0; color: var(--muted); max-width: 68ch; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(9, 11, 16, 0.92);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  flex-wrap: nowrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  flex: none;
}
.mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), #8b5cf6);
  color: #041016;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 12px;
}
.brand-name { display: block; font-weight: 800; letter-spacing: -0.04em; font-size: 18px; }
.brand-name span { color: var(--cyan); }
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--green);
}
.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: pulse 1.8s ease-in-out infinite;
}
.status.is-off { color: #fb7185; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.nav {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0 0 0 6px;
  padding: 0;
  flex: none;
}
.nav a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
  font-size: 13px;
  padding: 6px 11px;
  border-radius: 999px;
  transition: all 0.15s ease;
}
.nav a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.07);
}
.nav a.is-on {
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  padding: 10px 14px;
  font-weight: 750;
  background: #1b2233;
  color: white;
}
.btn:hover { border-color: var(--line-strong); }
.btn-add {
  background: linear-gradient(180deg, #e65100, #b83800);
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  box-shadow: 0 0 20px rgba(230, 81, 0, 0.35);
  border: 1px solid rgba(255, 140, 60, 0.25);
  white-space: nowrap;
}
.btn-add:hover {
  background: linear-gradient(180deg, #f45b08, #c63e00);
  box-shadow: 0 0 26px rgba(230, 81, 0, 0.5);
  filter: brightness(1.05);
}
.btn-cyan { background: var(--cyan); color: #041016; box-shadow: 0 0 18px rgba(0, 240, 255, 0.28); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.nav-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  transition: all 0.15s ease;
}
.nav-toggle:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
}
.nav-toggle svg {
  color: var(--cyan);
  flex-shrink: 0;
}
.auth-slot {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.auth-slot .btn {
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 650;
  border-radius: 8px;
}
.who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: white;
  white-space: nowrap;
}
.rank {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 999px;
  padding: 2px 7px;
}
/* Auth Modal */
.auth-sheet {
  width: min(440px, 100%);
  padding: 30px 24px 26px;
}
.auth-header {
  margin-bottom: 20px;
  padding-right: 44px;
}
.auth-header h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.auth-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.btn-full {
  width: 100%;
  justify-content: center;
}
.auth-switch-box {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.btn-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--cyan);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease, opacity 0.15s ease;
}
.btn-link:hover {
  color: #fff;
  opacity: 0.9;
}
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0 16px;
  color: #64748b;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--line);
}
.auth-divider span {
  padding: 0 12px;
}
.oauth-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.btn-oauth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #101522;
  border: 1px solid var(--line);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-oauth:hover {
  background: #171e30;
  border-color: rgba(0, 240, 255, 0.4);
  color: #fff;
  transform: translateY(-1px);
}
.btn-oauth svg {
  flex-shrink: 0;
}
@media (max-width: 400px) {
  .oauth-row {
    grid-template-columns: 1fr;
  }
}
.role-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.role-line select { background: #090d16; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.social { margin-top: 18px; }
.stars { display: flex; gap: 6px; margin: 8px 0 12px; }
.stars button {
  min-width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #121722;
  color: var(--muted);
}
.stars button.is-on { color: var(--yellow); border-color: var(--yellow); }
.stars button:disabled { cursor: default; }
.price-vote {
  margin: 4px 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.price-vote-q { margin: 0 0 8px; }
.price-vote-row { display: flex; flex-wrap: wrap; gap: 8px; }
.price-vote-row button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #121722;
  color: var(--muted);
}
.price-vote-row button.is-on[data-vote="fair"] { color: var(--green, #3ddc84); border-color: currentColor; }
.price-vote-row button.is-on[data-vote="high"] { color: var(--yellow); border-color: currentColor; }
.price-vote-row button:disabled { cursor: default; opacity: 0.6; }
.price-vote .fine { margin: 8px 0 0; }
.comment-thread {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.comment-thread:first-child {
  border-top: none;
}
.comment {
  padding: 8px 10px;
  border-radius: 8px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.comment.comment-highlight {
  background: rgba(0, 240, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.45), 0 0 18px rgba(0, 240, 255, 0.2);
}
.comment .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.comment-meta-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.comment-author {
  font-weight: 700;
  color: var(--text);
  display: inline-flex;
  align-items: center;
}
.comment-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.comment-reply-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-family: var(--sans);
  cursor: pointer;
  transition: all 0.2s ease;
}
.comment-reply-btn:hover {
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.08);
}
.comment-report-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 11px;
  font-family: var(--sans);
  cursor: pointer;
  transition: all 0.2s ease;
}
.comment-report-btn:hover {
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.4);
  background: rgba(251, 113, 133, 0.08);
}
.comment-report-btn:disabled {
  opacity: 0.65;
  cursor: default;
  color: #34d399;
  border-color: transparent;
}
.comment-delete-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 11px;
  font-family: var(--sans);
  cursor: pointer;
  transition: all 0.2s ease;
}
.comment-delete-btn:hover {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.08);
}
.comment-reply-quote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 6px;
  padding: 3px 8px;
  margin-top: 6px;
  margin-bottom: 2px;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  max-width: 100%;
}
.comment-reply-quote:hover {
  background: rgba(0, 240, 255, 0.14);
  border-color: rgba(0, 240, 255, 0.4);
  color: var(--text);
}
.comment-reply-quote .quote-arrow {
  color: var(--cyan);
  font-weight: 700;
  font-size: 13px;
}
.comment-reply-quote .quote-author {
  color: var(--cyan);
  font-weight: 600;
  white-space: nowrap;
}
.comment-reply-quote .quote-snippet {
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: italic;
}
.comment p {
  margin: 6px 0 0;
  line-height: 1.5;
  color: #e2e8f0;
  word-break: break-word;
}
.comment-replies {
  margin-left: 22px;
  padding-left: 14px;
  border-left: 2px solid rgba(0, 240, 255, 0.22);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}
.comment-reply {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.comment-reply-slot {
  margin-top: 6px;
}
.comment-reply-form {
  margin-left: 22px;
  margin-top: 8px;
  padding: 10px 12px;
  background: #0d121c;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.reply-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--cyan);
  font-family: var(--mono);
}
.reply-cancel-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
}
.reply-cancel-btn:hover {
  color: #fb7185;
}
.comment-reply-form textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #07090e;
  padding: 8px 10px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  resize: vertical;
}
.comment-reply-form textarea:focus {
  border-color: var(--cyan);
  outline: none;
}
.comment-reply-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.comment-reply-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}
@media (max-width: 600px) {
  .comment-replies {
    margin-left: 10px;
    padding-left: 10px;
  }
  .comment-reply-form {
    margin-left: 10px;
  }
}
.comment-form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.comment-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0c1018;
  padding: 10px 12px;
  resize: vertical;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
}
.comment-form textarea:focus {
  border-color: var(--cyan);
  outline: none;
}
.comment-form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.comment-form .btn {
  align-self: flex-end;
  padding: 8px 24px;
  font-weight: 700;
  width: auto;
}
.source-box { margin-top: 18px; }

.smart-module {
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(0, 240, 255, 0.22);
  background:
    linear-gradient(90deg, rgba(0, 240, 255, 0.08), transparent 42%),
    #0d121c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 0 28px rgba(0, 240, 255, 0.05);
}
.search-wrap { position: relative; }
.search-wrap input, .field input, .field select, .field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #090d16;
  padding: 10px 12px;
}
.search-wrap input { font-family: var(--mono); font-size: 13px; }
.search-wrap input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
}
.suggest {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #121826;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 6px;
  box-shadow: var(--shadow);
}
.suggest[hidden] { display: none !important; }
.suggest button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text);
}
.suggest button:hover { background: var(--cyan-dim); }
.suggest small { color: var(--muted); margin-left: 8px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag-row .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag, .chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #d5deee;
  border-radius: 999px;
  padding: 5px 10px;
  font-family: var(--mono);
  font-size: 12px;
}
.tag em { font-style: normal; color: var(--muted); margin-left: 4px; }
.tag.is-on, .chip.is-on {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--cyan-dim);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.18);
}
.tag-hot { border-color: rgba(0, 240, 255, 0.35); }

/* ── Hero ─────────────────────────────────────────── */
.hero { padding: 64px 0 24px; position: relative; }
.hero::before {
  content: "";
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: -80px;
  transform: translateX(-50%);
  width: 100vw;
  height: 580px;
  background: radial-gradient(ellipse 75% 55% at 50% 20%, rgba(0, 240, 255, 0.08), rgba(0, 240, 255, 0.01) 50%, transparent 75%);
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(0, 240, 255, 0.35);
  background: rgba(0, 240, 255, 0.08);
  color: var(--cyan);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  font-weight: 600;
}
.kicker::before { content: "◈"; font-size: 10px; opacity: 0.7; }
.nowrap { white-space: nowrap; }
.hero h1 {
  margin: 18px 0 16px;
  max-width: 14em;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  text-wrap: balance;
  background: linear-gradient(160deg, #fff 40%, rgba(0,240,255,0.75));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .lede {
  max-width: 44ch;
  font-size: 18px;
  line-height: 1.6;
  color: #9faec8;
  text-wrap: pretty;
}
.hero-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.hero-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 240, 255, 0.28);
  background: rgba(0, 240, 255, 0.06);
  color: #e7fbfe;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.hero-cat::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: rgba(0, 240, 255, 0.8);
  flex: none;
}
.hero-cat:hover,
.hero-cat.is-on {
  color: #041016;
  background: var(--cyan);
  border-color: var(--cyan);
}
.hero-cat:hover::before,
.hero-cat.is-on::before {
  background: #041016;
  box-shadow: none;
}
.utp { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.utp li {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.06);
  color: var(--green);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
}
.utp li::before { content: "✓"; font-size: 11px; opacity: 0.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .btn-cyan {
  padding: 13px 28px;
  font-size: 15px;
  border-radius: 12px;
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.35), 0 4px 16px rgba(0, 240, 255, 0.18);
  transition: filter 0.15s, box-shadow 0.15s;
}
.hero-actions .btn-cyan:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.48), 0 4px 20px rgba(0, 240, 255, 0.28);
}
.hero-actions .btn-ghost {
  padding: 13px 24px;
  font-size: 15px;
  border-radius: 12px;
  border-color: var(--line-strong);
  transition: border-color 0.15s, background 0.15s;
}
.hero-actions .btn-ghost:hover { border-color: var(--cyan); background: rgba(0,240,255,0.05); }
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 36px 0 10px;
}
.trust article {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #13172200, #0e121c);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 18px 18px;
  transition: border-color 0.2s, transform 0.2s;
}
.trust article:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.trust article::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan) 0%, rgba(0,240,255,0.2) 60%, transparent 100%);
}
.trust-icon {
  font-size: 22px;
  margin-bottom: 12px;
  display: block;
  filter: drop-shadow(0 0 6px rgba(0,240,255,0.4));
}
.trust h3 { margin: 0 0 8px; font-size: 15px; font-weight: 700; letter-spacing: -0.025em; color: #e8f0ff; }
.trust p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

.flagship {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  margin: 18px 0 20px;
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #121624, #0b0e15);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.flagship::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--orange), transparent);
}
.eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; padding: 0; list-style: none; }
.specs li {
  background: #161b2b;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  min-height: 58px;
}
.specs strong {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.flagship-actions { display: grid; gap: 8px; margin-top: 4px; }
.flagship-actions .btn-add { width: 100%; }
.file-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.file-actions .btn { width: 100%; }
.file-actions .span-2 { grid-column: 1 / -1; }

.device-sim { background: #0c1018; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.sim-top, .oled-bar, .oled-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.oled {
  margin-top: 12px;
  background: #020304;
  border-radius: 18px;
  padding: 22px 16px 16px;
  box-shadow: inset 0 0 0 2px #1c2436, inset 0 0 40px rgba(0, 240, 255, 0.05);
}
.oled-glass {
  width: min(100%, 300px);
  margin: 0 auto;
  aspect-ratio: 2 / 1;
  background: #000;
  color: #9ffbff;
  border: 2px solid rgba(0, 240, 255, 0.35);
  border-radius: 4px;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.25);
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.35;
  position: relative;
  overflow: hidden;
}
.oled-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, 0.18) 2px 3px);
  pointer-events: none;
}
.oled-glass.tap { animation: tap 0.18s linear; }
@keyframes tap { 50% { filter: brightness(1.4); } }
.oled-line.is-on { color: white; text-shadow: 0 0 8px rgba(0, 240, 255, 0.8); }
.keys {
  display: grid;
  grid-template-columns: repeat(3, 42px);
  grid-template-areas:
    ". up ."
    "left ok right"
    ". down .";
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.keys .up { grid-area: up; }
.keys .left { grid-area: left; }
.keys .ok { grid-area: ok; }
.keys .right { grid-area: right; }
.keys .down { grid-area: down; }
.keys button, .key-back {
  height: 42px;
  border-radius: 50%;
  border: 2px solid #2c354d;
  background: #1a2132;
  color: #c9d4e8;
}
.keys button:hover, .key-back:hover { background: var(--cyan); color: #041016; border-color: var(--cyan); }
.key-back { display: block; margin: 8px auto 0; padding: 0 14px; border-radius: 999px; }
.sim-note { text-align: center; color: var(--muted); font-size: 12px; line-height: 1.4; margin: 10px 0 0; }

.catalog-head, .split {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
}
.catalog-head {
  display: grid;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 6px;
}
.filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #0d121c;
}
.filter-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-line .label {
  flex: none;
  width: 72px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-start; }
.blurb { color: var(--muted); min-height: 1.4em; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 18px 0 40px;
}
.device-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 2px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  color: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.device-card:has(.badge.ready) { border-top-color: var(--green); }
.device-card:has(.badge.kit) { border-top-color: var(--blue); }
.device-card:has(.badge.pcb) { border-top-color: var(--yellow); }
.device-card:has(.badge.oss) { border-top-color: var(--purple); }
.banner {
  aspect-ratio: 16 / 10;
  display: block;
  position: relative;
  background:
    linear-gradient(180deg, rgba(0, 240, 255, 0.05), transparent),
    #141824;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  width: 100%;
}
.banner svg { width: 86px; height: 64px; opacity: 0.85; }
.banner.is-empty {
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(0, 240, 255, 0.07), transparent 46%),
    repeating-linear-gradient(0deg, transparent, transparent 18px, rgba(255, 255, 255, 0.035) 19px),
    repeating-linear-gradient(90deg, transparent, transparent 18px, rgba(255, 255, 255, 0.035) 19px),
    #10141c;
}
.banner.is-empty svg { width: 46%; height: auto; max-height: 58%; opacity: 1; }
.banner-cap {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #080b11;
  display: block;
  transition: transform 0.28s ease;
}
.device-card:hover .banner img {
  transform: scale(1.04);
}
.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 750;
  background: rgba(9, 11, 16, 0.92);
  border: 1px solid var(--line-strong);
}
.badge.ready { color: var(--green); }
.badge.kit { color: var(--blue); }
.badge.pcb { color: var(--yellow); }
.badge.oss { color: var(--purple); }
.badge.demo {
  right: auto;
  left: 10px;
  color: var(--muted);
}
.badge.video {
  right: auto;
  left: 10px;
  background: rgba(14, 18, 27, 0.94);
  color: #00f2fe;
  border-color: rgba(0, 242, 254, 0.45);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}
.badge.demo + .badge.video {
  left: 80px;
}
.card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.meta { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.card-body h3 { margin: 0; font-size: 17px; letter-spacing: -0.03em; line-height: 1.25; }
.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  flex: none;
  max-height: calc(1.45em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.card-specs span {
  font-family: var(--mono);
  font-size: 11px;
  color: #b7fbff;
  background: var(--cyan-dim);
  border-radius: 999px;
  padding: 2px 8px;
}
.price { font-family: var(--mono); font-weight: 800; color: var(--cyan); font-size: 16px; white-space: nowrap; }
.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  flex-wrap: wrap;
}
.card-btns { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.card-actions .btn { padding: 6px 12px; font-size: 13px; }
.device-card:hover { transform: translateY(-3px); border-color: rgba(0, 240, 255, 0.4); background: var(--card-2); }
.empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  padding: 28px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.empty p { margin: 0; }
.card-supply {
  display: block;
  margin-top: 2px;
  font-family: var(--sans, inherit);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.flasher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.06), rgba(139, 92, 246, 0.06));
  margin-bottom: 42px;
}
.steps { margin: 12px 0; padding-left: 18px; color: var(--muted); }
.steps strong { color: white; }
#buildLog { min-height: 96px; max-height: 180px; margin-bottom: 10px; }
.console {
  background: #07090e;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 12px;
  min-height: 220px;
  max-height: 280px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: #b7f7ea;
}
.flasher-controls { display: grid; gap: 8px; margin-bottom: 10px; }
.flasher-controls select, .field input, .field select, .field textarea { background: #090d16; }

.about {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0 36px;
}
.about article, .form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.about h3 { margin: 0 0 6px; }
.about p, .fine { color: var(--muted); margin: 0; font-size: 14px; }
.form-card {
  margin-bottom: 40px;
  padding: 22px;
  border-radius: 20px;
  border-color: var(--line-strong);
  color-scheme: dark;
}
.form-card h2 { margin: 0 0 6px; }
.form-card > .lede { max-width: 70ch; }
.form-block { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.form-block h3 {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-block .fine { margin-bottom: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
.field span { font-size: 13px; font-weight: 700; }
.pass-wrap { position: relative; display: flex; align-items: center; width: 100%; }
.pass-wrap input { width: 100%; padding-right: 42px; }
.pass-toggle {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  padding: 6px;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.15s ease;
  line-height: 1;
}
.pass-toggle:hover { opacity: 1; }
#pSource { font-family: var(--mono); font-size: 13px; line-height: 1.5; }
.file-pick {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 6px 12px 6px 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #090d16;
}
.file-pick input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}
.file-pick-btn {
  flex: none;
  pointer-events: none;
  border: 1px solid var(--line);
  background: #1b2233;
  color: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}
.file-pick:hover .file-pick-btn { border-color: var(--cyan); color: var(--cyan); }
.file-pick-name {
  pointer-events: none;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.preview {
  margin-top: 8px;
  width: 160px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: none;
}
.preview.show { display: block; }
.form-error { color: #fb7185; min-height: 1.2em; margin: 0; flex: 1; }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(4, 6, 10, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: start center;
  overflow: auto;
  padding: 24px 16px 40px;
}
.overlay[hidden] { display: none !important; }
.lightbox-overlay {
  z-index: 100;
  background: rgba(3, 5, 8, 0.94);
  backdrop-filter: blur(10px);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.lightbox-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(14, 18, 27, 0.92);
  border-bottom: 1px solid var(--line);
  z-index: 2;
  gap: 12px;
  width: 100%;
}
.lightbox-caption {
  font-weight: 750;
  font-size: 15px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.lightbox-actions .btn {
  white-space: nowrap;
}
.lightbox-topbar .lightbox-close,
.lightbox-close {
  position: static !important;
  top: auto !important;
  right: auto !important;
  background: #141a26;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.lightbox-viewport {
  flex: 1;
  width: 100%;
  overflow: auto;
  display: flex;
  padding: 24px;
  position: relative;
  user-select: none;
}
#lightboxImg {
  max-width: 95vw;
  max-height: calc(100vh - 90px);
  object-fit: contain;
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform 0.18s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  display: block;
  margin: auto;
}
#lightboxImg.is-real-size {
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  cursor: zoom-out;
  margin: auto;
}
.sheet {
  width: min(980px, 100%);
  margin-top: 24px;
  background: #10141d;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.sheet-narrow { width: min(560px, 100%); }
.icon-close {
  position: sticky;
  top: 14px;
  float: right;
  margin-top: -8px;
  margin-right: -8px;
  margin-bottom: -40px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #141a26;
  color: #cbd5e1;
  line-height: 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  z-index: 30;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.icon-close:hover {
  background: #1e2638;
  color: #fff;
  border-color: var(--cyan);
}
.icon-close svg { display: block; }
.product-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 28px; align-items: start; }
.gallery-col { min-width: 0; width: 100%; position: sticky; top: 12px; }
.product-info { min-width: 0; width: 100%; }
.product-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding-right: 56px;
}
.product-titles { min-width: 0; flex: 1; }
.product-titles h3 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.04em;
  line-height: 1.2;
  overflow-wrap: break-word;
}
.product-price {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 800;
  color: var(--cyan);
  margin: 6px 0 0;
  letter-spacing: -0.02em;
}
.product-info .lede {
  margin-top: 12px;
  line-height: 1.5;
  text-wrap: pretty;
}
.panel { margin-top: 16px; }
.panel h4 {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.spec-pills li {
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 255, 0.35);
  background: var(--cyan-dim);
  color: var(--cyan);
}
.product-section, #productBody > .social, #productBody > .source-box {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.product-section h3, #productBody > .social h3, #productBody > .source-box h3 { margin: 0 0 6px; }
.gallery-frame {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #080b11;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  height: 380px;
  max-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #080b11;
  cursor: zoom-in;
  transition: opacity 0.15s ease;
}
.gallery-frame.is-wide { aspect-ratio: auto; height: auto; min-height: 280px; }
.gallery-frame.is-video {
  aspect-ratio: auto;
  height: auto;
  max-height: none;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  position: relative;
}
.video-embed-container {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.gallery-frame.is-video iframe,
.video-embed-container iframe {
  width: 100%;
  height: 480px;
  border: none;
  border-radius: 14px 14px 0 0;
  display: block;
}
.video-embed-bar {
  width: 100%;
  background: #0b0f1a;
  padding: 9px 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid var(--line);
  border-radius: 0 0 14px 14px;
}
.gallery-frame.is-video video,
.native-video-player {
  width: 100%;
  max-height: 480px;
  border-radius: 14px;
  background: #000;
  display: block;
  outline: none;
}
.owner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.file-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.video-card-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 40px 20px;
  width: 100%;
}
.gallery-frame.is-placeholder {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  position: relative;
  background:
    linear-gradient(180deg, rgba(0, 240, 255, 0.07), transparent 46%),
    repeating-linear-gradient(0deg, transparent, transparent 18px, rgba(255, 255, 255, 0.035) 19px),
    repeating-linear-gradient(90deg, transparent, transparent 18px, rgba(255, 255, 255, 0.035) 19px),
    #10141c;
}
.gallery-frame svg { width: 100%; height: auto; display: block; }
.gallery-frame.is-placeholder svg { width: 50%; max-width: 200px; height: auto; }
.demo-note {
  margin-top: 4px;
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed var(--line-strong);
  background: #0d121c;
}
.demo-note h4 {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.demo-note p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.demo-note .btn { width: 100%; }

.gallery-frame.is-wide img { height: auto; max-height: 520px; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumbs button {
  border: 1px solid var(--line);
  background: #121722;
  color: var(--muted);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.thumbs button:hover { color: var(--text); border-color: var(--line-strong); background: #1a2030; }
.thumbs button.is-on { color: var(--cyan); border-color: var(--cyan); background: rgba(0,240,255,0.06); }
.bom { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.bom details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: #0d121c;
}
.bom summary { cursor: pointer; font-weight: 700; }
.action-stack { display: grid; gap: 16px; margin-top: 16px; padding-right: 18px; }
.action-group h4 {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.action-group h4::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 0; }
.contact-wide { grid-column: 1 / -1; }
/* All buttons in contact/files panels get consistent height */
.contacts .btn, .action-group .btn {
  min-height: 44px;
  font-size: 13.5px;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, filter 0.15s;
}
/* Telegram solid cyan — with proper glow */
.contacts .btn-cyan {
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.25);
}
.contacts .btn-cyan:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.42);
}
/* Ghost buttons (Email, Website, Schematics, etc.) */
.contacts .btn-ghost, .action-group .btn-ghost {
  border-color: var(--line-strong);
  color: #c8d6f0;
}
.contacts .btn-ghost:hover, .action-group .btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.05);
}
.file-list { margin: 10px 0; padding-left: 18px; color: var(--muted); font-family: var(--mono); font-size: 13px; }
.share-row { display: flex; margin-top: 4px; width: 100%; }
.share-copy-btn {
  width: 100%;
  font-size: 13.5px;
  min-height: 44px;
  padding: 10px 18px;
  color: var(--muted);
  border-color: var(--line-strong);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.share-copy-btn:hover { color: var(--cyan); border-color: var(--cyan); background: rgba(0,240,255,0.05); }

/* ============================================================
   CLEAN & MODERN TECH FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: 
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(0, 240, 255, 0.035) 0%, transparent 70%),
    linear-gradient(180deg, #090d16 0%, #05070c 100%);
  padding: 40px 0 24px;
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 240, 255, 0.2) 20%, 
    rgba(0, 240, 255, 0.75) 50%, 
    rgba(0, 240, 255, 0.2) 80%, 
    transparent 100%
  );
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}
.footer-content {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) max-content max-content max-content;
  gap: 28px 56px;
  margin-bottom: 28px;
  align-items: start;
}
.footer-col-brand .footer-brand {
  margin-bottom: 12px;
  display: inline-flex;
}
.footer-bio {
  font-size: 13.5px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0 0 16px;
  max-width: 42ch;
}
.footer-telemetry {
  max-width: none;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(0, 240, 255, 0.16);
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.035);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
  color: #94a3b8;
}
.footer-telemetry-label {
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}
.footer-telemetry-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4ade80;
}
.footer-telemetry strong {
  color: #e2e8f0;
  font-weight: 600;
}
.footer-telemetry-note {
  margin-top: 2px;
  color: #64748b;
  white-space: nowrap;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 2.5s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.footer-heading {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}
.footer-heading::after {
  content: "";
  display: block;
  width: 22px;
  height: 1px;
  margin-top: 8px;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.75), transparent);
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-links-2col {
  display: grid;
  grid-template-columns: max-content max-content;
  column-gap: 28px;
  row-gap: 2px;
}
.footer-links a,
.footer-link-btn {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.2;
  transition: color 0.15s ease, background 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  border-radius: 6px;
  padding: 5px 8px 5px 6px;
  margin-left: -6px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  hyphens: none;
}
.footer-links a::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: rgba(148, 163, 184, 0.55);
  flex: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.footer-links a:hover,
.footer-link-btn:hover,
.footer-tag-link.is-on {
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.06);
}
.footer-links a:hover::before,
.footer-tag-link.is-on::before {
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.7);
}

/* Tag chips in Ecosystem */
.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.footer-tag {
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.15s ease;
}
.footer-tag:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.35);
  color: var(--cyan);
  transform: translateY(-1px);
}

/* Connect column: Social buttons row */
.footer-social-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.social-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: #94a3b8;
  transition: all 0.18s ease;
  text-decoration: none;
}
.social-btn:hover {
  transform: translateY(-2px);
}
.social-tg:hover {
  background: rgba(34, 158, 217, 0.15);
  border-color: rgba(34, 158, 217, 0.5);
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(34, 158, 217, 0.25);
}
.social-gh:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}
.social-mail:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.4);
  color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}
.social-tt:hover {
  background: rgba(255, 0, 80, 0.15);
  border-color: rgba(255, 0, 80, 0.4);
  color: #ff3b69;
  box-shadow: 0 0 10px rgba(255, 0, 80, 0.2);
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-legal a,
.footer-legal .footer-link-btn {
  font-size: 12.5px;
  color: #64748b;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}
.footer-legal a:hover,
.footer-legal .footer-link-btn:hover {
  color: #e2e8f0;
  transform: none;
}

/* Bottom Bar */
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  color: #64748b;
  gap: 16px;
}
.footer-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.copy-brand {
  color: #94a3b8;
  font-weight: 500;
}
.footer-sep {
  opacity: 0.3;
}
.copy-info {
  color: #64748b;
}
.back-to-top {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 12px;
  font-family: var(--mono);
  font-weight: 500;
  transition: all 0.18s ease;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}
.back-to-top:hover {
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.35);
  background: rgba(0, 240, 255, 0.05);
  transform: translateY(-2px);
}
.back-to-top svg {
  transition: transform 0.18s ease;
}
.back-to-top:hover svg {
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-links-2col {
    grid-template-columns: max-content;
  }
  .footer-bottom {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .footer-legal {
    justify-content: flex-start;
  }
  .back-to-top {
    justify-self: start;
  }
}
@media (max-width: 540px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  background: #111827;
  color: #f3f4f6;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.toast-success {
  background: #0d281e;
  border-color: var(--green);
  color: #ecfdf5;
}
.toast.toast-error {
  background: #2a1215;
  border-color: #ef4444;
  color: #fee2e2;
}
.toast[hidden] { display: none !important; }

.form-auth-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 12px;
  margin: 16px 0 20px;
  color: #fde68a;
  font-size: 13.5px;
}
.form-auth-notice .btn {
  padding: 6px 14px;
  font-size: 12.5px;
  white-space: nowrap;
}

/* Dashboard & Personal Account */
.sheet-wide { width: min(840px, 100%); }
.who-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font: inherit;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 999px;
  padding: 4px 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.who-btn:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.4);
  color: #fff;
}
.who-btn svg {
  color: var(--cyan);
  flex-shrink: 0;
}
.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-right: 56px;
  margin-bottom: 16px;
}
.dash-head h3 { margin: 0; font-size: 22px; }
.dash-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.badge-inline {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(9, 11, 16, 0.92);
  border: 1px solid var(--line-strong);
  line-height: 1.5;
}
.badge-inline.ready { color: var(--green); border-color: rgba(34, 197, 94, 0.35); }
.badge-inline.kit { color: var(--blue); border-color: rgba(56, 189, 248, 0.35); }
.badge-inline.pcb { color: var(--yellow); border-color: rgba(251, 191, 36, 0.35); }
.badge-inline.oss { color: var(--purple); border-color: rgba(168, 85, 247, 0.35); }
.badge-inline.rating { color: #fbbf24; border-color: rgba(251, 191, 36, 0.35); }
.dash-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  overflow-x: auto;
}
.dash-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.dash-tab:hover {
  color: white;
}
.dash-tab.is-active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}
.dash-content {
  min-height: 200px;
}
.dash-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dash-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #141924;
  border: 1px solid var(--line);
  border-radius: 12px;
  flex-wrap: wrap;
}
.dash-item-main {
  min-width: 0;
  flex: 1;
}
.dash-item-title {
  font-weight: 700;
  font-size: 15px;
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dash-item-title:hover {
  color: var(--cyan);
}
.dash-item-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.dash-item-comment {
  font-size: 13px;
  color: #cbd5e1;
  margin-top: 6px;
  line-height: 1.45;
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 12px;
  border-radius: 8px;
  border-left: 2px solid var(--cyan);
}
.dash-item-reply-quote {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  background: rgba(0, 240, 255, 0.05);
  border-left: 2px solid var(--cyan);
  padding: 4px 8px;
  border-radius: 0 4px 4px 0;
  display: flex;
  gap: 6px;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-item-reply-quote strong {
  color: var(--cyan);
  font-weight: 600;
}
.dash-settings-card {
  background: #141924;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.dash-settings-card h4 {
  margin: 0 0 6px;
  font-size: 15px;
}
.dash-oauth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.dash-oauth-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #0f131c;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.dash-oauth-badge {
  font-size: 11px;
  font-family: var(--mono);
  padding: 3px 6px;
  border-radius: 4px;
}
.dash-oauth-badge.connected {
  background: rgba(34, 197, 94, 0.2);
  color: var(--green);
}

/* Moderation & Edit Styles */
.badge-status {
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-status.badge-pending, .badge.badge-pending {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
}
.badge-status.badge-approved, .badge.badge-approved {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.45);
}
.badge-status.badge-rejected, .badge.badge-rejected {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.45);
}
.review-notice {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  margin-right: 48px;
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.review-notice.notice-pending {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fef08a;
}
.review-notice.notice-rejected {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}
.mod-bar {
  background: #151a24;
  border: 1px solid var(--cyan);
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.mod-status {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mod-status strong {
  color: #fff;
}
.mod-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.dash-item-desc {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 6px;
  line-height: 1.4;
}
.dash-item-note {
  font-size: 12px;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  padding: 6px 10px;
  border-radius: 6px;
  border-left: 3px solid #ef4444;
  margin-top: 8px;
}
.photo-preview {
  max-width: 180px;
  max-height: 120px;
  object-fit: contain;
  background: #080b11;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-top: 8px;
  display: none;
}
.photo-preview.show {
  display: block;
}



@media (max-width: 1100px) {
  .nav a { padding: 6px 8px; }
  .rank { display: none; }
  .brand-name { font-size: 16px; }
}
@media (max-width: 980px) {
  .trust, .about, .flasher, .flagship, .product-grid, .contacts, .bom { grid-template-columns: 1fr; }
  .gallery-col { position: static; }
  .product-head { flex-wrap: wrap; }
  .filters { align-items: stretch; }
  .chips { justify-content: flex-start; }
}
@media (max-width: 860px) {
  .btn.nav-toggle {
    display: inline-flex;
    order: 4;
    margin-left: 4px;
  }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    background: rgba(18, 23, 34, 0.98);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(20px);
    z-index: 50;
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 8px;
  }
  .header-row {
    flex-wrap: nowrap;
    justify-content: space-between;
    min-height: 60px;
    gap: 8px;
  }
  .brand { order: 1; }
  .auth-slot {
    order: 2;
    margin-left: auto;
  }
  .btn-add {
    order: 3;
    padding: 8px 12px;
    font-size: 13px;
  }
  .smart-module, .form-grid, .specs { grid-template-columns: 1fr; }
  .form-foot { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .overlay { padding: 12px 10px 32px; }
  .sheet {
    padding: 16px 14px;
    border-radius: 16px;
    margin-top: 8px;
    width: 100%;
  }
  .mod-bar, .review-notice { }
  .product-head { padding-right: 48px; }
  .product-head h3 { font-size: 22px; }
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .chip { padding: 6px 10px; font-size: 13px; }
  .btn { padding: 8px 12px; }
}
@media (max-width: 520px) {
  .brand-name span { display: none; }
  .brand-name { font-size: 16px; }
  .status { display: none; }
  .mark { width: 36px; height: 36px; font-size: 11px; }
  .btn-add {
    padding: 8px 12px;
    font-size: 12.5px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-toggle span { display: none; }
  .nav-toggle {
    padding: 8px 10px;
    min-height: 40px;
    min-width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .auth-slot .btn, .who-btn {
    padding: 8px 11px;
    font-size: 12px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
@media (max-width: 600px) {
  .auth-slot .auth-wide-only { display: none; }
  .header-row .btn-add { font-size: 0; }
  .header-row .btn-add::before { content: "+ Add"; font-size: 12.5px; }
}
@media (max-width: 400px) {
  .header-row .brand-name { display: none; }
  .who-btn .who-name { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s ease;
}
.footer-link-btn:hover {
  color: var(--cyan);
}

.legal-content h3 {
  margin: 0 0 16px;
  font-size: 24px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.legal-content h4 {
  margin: 22px 0 8px;
  font-size: 16px;
  color: var(--cyan);
}
.legal-content p, .legal-content li {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.65;
}
.legal-content ul {
  padding-left: 22px;
  margin: 8px 0;
}
.legal-content code {
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: var(--mono);
}

/* Quick Telegram Contact on Catalog Cards */
.card-tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #00e5ff 0%, #0099ff 100%) !important;
  color: #040914 !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}
.card-tg-btn:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.55);
  filter: brightness(1.08);
}
.card-tg-btn-view {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #e2e8f0 !important;
  box-shadow: none !important;
}

/* Shipping info on cards and in modal */
.card-shipping {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 6px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.025);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.card-shipping-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Multi-photo upload gallery slots */
.photos-preview-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.photo-slot {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #0d121c;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-slot-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #00e5ff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}
.photo-slot-del {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(244, 63, 94, 0.9);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}
.photo-slot-del:hover {
  background: #e11d48;
}

/* Markdown Documentation & BOM in Project Modal */
.md-doc-section {
  margin-top: 28px;
  background: linear-gradient(180deg, rgba(16, 24, 39, 0.75) 0%, rgba(10, 15, 26, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  position: relative;
}

.md-doc-section > h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.markdown-body {
  color: #cbd5e1;
  line-height: 1.75;
  font-size: 15px;
  font-family: inherit;
  word-break: break-word;
}

/* Headings */
.markdown-body .md-h {
  color: #f8fafc;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 30px 0 14px;
}
.markdown-body .md-h:first-child {
  margin-top: 4px;
}
.markdown-body .md-h1 {
  font-size: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
  color: #fff;
}
.markdown-body .md-h2 {
  font-size: 20px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.25);
  padding-bottom: 8px;
  color: #fff;
}
.markdown-body .md-h3 {
  font-size: 17.5px;
  color: #38bdf8;
}
.markdown-body .md-h4 {
  font-size: 15px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Paragraphs & Text */
.markdown-body .md-p {
  margin: 0 0 16px;
  color: #cbd5e1;
}
.markdown-body .md-p:last-child {
  margin-bottom: 0;
}

/* Links */
.markdown-body .md-link {
  color: var(--cyan, #00f0ff);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 240, 255, 0.4);
  transition: color 0.15s, border-color 0.15s, text-shadow 0.15s;
  font-weight: 500;
}
.markdown-body .md-link:hover {
  color: #fff;
  border-bottom-color: #fff;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

/* Inline Code & Code Blocks */
.markdown-body .md-code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 5px;
  padding: 2px 7px;
  color: #38bdf8;
}

.markdown-body .md-code-block-wrap {
  margin: 20px 0;
  border-radius: 10px;
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.markdown-body .md-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  font-weight: 600;
}
.markdown-body .md-copy-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
}
.markdown-body .md-copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.markdown-body .md-pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  color: #e2e8f0;
}

/* Interactive Clickable Images / Figures with Zoom */
.markdown-body .md-figure {
  margin: 22px 0;
  display: block;
  width: 100%;
}
.markdown-body .md-img-wrap {
  position: relative;
  display: block;
  width: 100%;
  cursor: zoom-in;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0b111e;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s, box-shadow 0.25s;
}
.markdown-body .md-img-wrap:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 12px 36px rgba(0, 240, 255, 0.18), 0 4px 12px rgba(0, 0, 0, 0.6);
}
.markdown-body .md-inline-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 11px;
  cursor: zoom-in;
}
.markdown-body .md-img-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.75;
  pointer-events: none;
  transition: opacity 0.2s, background 0.2s, transform 0.2s;
}
.markdown-body .md-img-wrap:hover .md-img-badge {
  opacity: 1;
  background: rgba(0, 240, 255, 0.25);
  transform: scale(1.05);
}
.markdown-body .md-figcaption {
  margin-top: 9px;
  font-size: 13px;
  color: #94a3b8;
  font-style: italic;
  text-align: center;
}

/* Callout Alerts (GitHub / Modern Tech Doc style) */
.markdown-body .md-alert {
  margin: 18px 0;
  border-radius: 12px;
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid #38bdf8;
}
.markdown-body .md-alert-header {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.markdown-body .md-alert-note {
  border-left-color: #00f0ff;
  background: rgba(0, 240, 255, 0.06);
}
.markdown-body .md-alert-note .md-alert-header { color: #00f0ff; }

.markdown-body .md-alert-tip {
  border-left-color: #10b981;
  background: rgba(16, 185, 129, 0.06);
}
.markdown-body .md-alert-tip .md-alert-header { color: #10b981; }

.markdown-body .md-alert-important {
  border-left-color: #a855f7;
  background: rgba(168, 85, 247, 0.06);
}
.markdown-body .md-alert-important .md-alert-header { color: #a855f7; }

.markdown-body .md-alert-warning {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.06);
}
.markdown-body .md-alert-warning .md-alert-header { color: #f59e0b; }

.markdown-body .md-alert-caution {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.06);
}
.markdown-body .md-alert-caution .md-alert-header { color: #ef4444; }

.markdown-body .md-quote {
  padding: 10px 16px;
  margin: 14px 0;
  border-left: 3px solid #475569;
  background: rgba(255, 255, 255, 0.02);
  color: #94a3b8;
  border-radius: 0 8px 8px 0;
}

/* Lists */
.markdown-body .md-list,
.markdown-body .md-ol {
  margin: 0 0 16px;
  padding-left: 24px;
}
.markdown-body .md-list li,
.markdown-body .md-ol li {
  margin-bottom: 8px;
  line-height: 1.6;
}
.markdown-body .md-list li::marker {
  color: #00f0ff;
}
.markdown-body .md-ol li::marker {
  color: #38bdf8;
  font-weight: 600;
}

/* Horizontal Rule */
.markdown-body .md-hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  margin: 28px 0;
}

/* Modern BOM & Data Tables */
.markdown-body .md-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 22px 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b111e;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.markdown-body .md-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}
.markdown-body .md-table th {
  background: #141c2e;
  color: #f1f5f9;
  font-weight: 600;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11.5px;
}
.markdown-body .md-table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}
.markdown-body .md-table tr:hover td {
  background: rgba(0, 240, 255, 0.04);
}
.markdown-body .md-table tr:last-child td {
  border-bottom: none;
}

/* Collapsible Table & List Styles */
.markdown-body .md-table-wrap.md-table-collapsed {
  position: relative;
  margin-bottom: 6px;
}
.markdown-body .md-table-wrap.md-table-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(11, 17, 30, 0.95));
  pointer-events: none;
}
.markdown-body .md-table-row-hidden {
  display: none !important;
}
.markdown-body .md-table-footer,
.markdown-body .md-list-footer {
  display: flex;
  justify-content: center;
  margin: 10px 0 24px;
}
.markdown-body .md-table-expand-btn,
.markdown-body .md-list-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--sans);
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.markdown-body .md-table-expand-btn:hover,
.markdown-body .md-list-expand-btn:hover {
  background: rgba(0, 240, 255, 0.18);
  border-color: rgba(0, 240, 255, 0.55);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 240, 255, 0.2);
}
.markdown-body .md-table-expand-btn:active,
.markdown-body .md-list-expand-btn:active {
  transform: translateY(0);
}
.markdown-body .md-list-item-hidden {
  display: none !important;
}



.origin-facts{list-style:none;margin:2px 0 0;padding:0;display:grid;gap:6px;font-size:13px}
.origin-facts li{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:baseline;min-width:0}
.origin-facts a{color:var(--cyan,#22d3ee);overflow-wrap:anywhere}
.origin-label{color:var(--muted,#94a3b8);font-size:12px}
.origin-label::after{content:':'}
