/* ============================================================
   HI-PRO TOOL HUB — Theme (Neu-Cyber dashboard)
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

::selection {
  background: rgba(34, 211, 238, 0.28);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* Thin custom scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: #2b3542 transparent;
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: #2b3542;
  border: 3px solid var(--bg);
  border-radius: var(--radius-pill);
}

/* ------------------------------------------------------------ */
/* Background layers                                             */
/* ------------------------------------------------------------ */

.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-layer--grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
}

.bg-layer--glow {
  background:
    radial-gradient(560px 420px at 78% -6%, rgba(34, 211, 238, 0.14), transparent 70%),
    radial-gradient(520px 460px at 8% 12%, rgba(167, 139, 250, 0.11), transparent 72%),
    radial-gradient(700px 500px at 50% 108%, rgba(245, 184, 74, 0.06), transparent 70%);
}

/* ------------------------------------------------------------ */
/* Shell                                                         */
/* ------------------------------------------------------------ */

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}

.content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

/* ------------------------------------------------------------ */
/* Sidebar                                                       */
/* ------------------------------------------------------------ */

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 24px 18px 20px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #0C1118 0%, #090D12 100%);
  z-index: var(--z-sidebar);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  border-radius: var(--radius);
  transition: background var(--dur) var(--ease);
}
.brand:hover { background: rgba(255, 255, 255, 0.03); }

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  filter: drop-shadow(0 0 14px rgba(255, 77, 94, 0.35));
}

.brand__text { display: flex; flex-direction: column; line-height: 1.1; }

.brand__text strong {
  font-family: var(--font-head);
  font-size: 17px;
  letter-spacing: 0.14em;
  color: var(--text);
}

.brand__text small {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.34em;
  color: var(--muted);
}

.nav { display: flex; flex-direction: column; gap: 8px; }

.nav__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}

.nav__item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.nav__item:active { transform: translateY(1px); }

.nav__item.is-active {
  color: #fff;
  background: linear-gradient(145deg, #182029, #11161d);
  border-color: var(--line-soft);
  box-shadow: var(--shadow-out-sm), inset 0 0 0 1px rgba(34, 211, 238, 0.08);
}

.nav__item.is-active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 26%;
  width: 3px;
  height: 48%;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
}

.nav__icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--muted);
  transition: color var(--dur) var(--ease);
}
.nav__icon svg { width: 21px; height: 21px; }
.nav__item.is-active .nav__icon,
.nav__item:hover .nav__icon { color: var(--accent); }

.nav__badge {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: normal;
}

.sidebar__foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }

.support-card {
  position: relative;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: linear-gradient(145deg, #141A22, #0E131A);
  box-shadow: var(--shadow-out-sm);
}

.support-card__dot {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.14);
  animation: pulseDot 2.4s var(--ease) infinite;
}

.support-card__title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.support-card__text {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.sidebar__version { padding-left: 8px; }

/* ------------------------------------------------------------ */
/* Topbar                                                        */
/* ------------------------------------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-topbar);
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--topbar-h);
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 20, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  max-width: 620px;
  padding: 0 12px 0 14px;
  height: 46px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #0E131A, #141A22);
  box-shadow: var(--shadow-in-sm);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.search:focus-within {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: var(--shadow-in-sm), var(--shadow-glow-cyan);
}

.search__icon { display: grid; place-items: center; color: var(--muted); }
.search__icon svg { width: 19px; height: 19px; }

.search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: var(--text);
  outline: none;
}
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { filter: invert(0.6); }

.search__kbd {
  padding: 3px 7px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  white-space: nowrap;
}

.topbar__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: linear-gradient(145deg, #141A22, #0E131A);
  box-shadow: var(--shadow-out-xs);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease);
}
.sync-pill:hover { box-shadow: var(--shadow-out-sm); }
.sync-pill:active { transform: translateY(1px); box-shadow: var(--shadow-in-sm); }

.sync-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex: 0 0 auto;
}

.sync-pill.is-live .sync-pill__dot {
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.14);
  animation: pulseDot 2.4s var(--ease) infinite;
}
.sync-pill.is-cached .sync-pill__dot { background: var(--accent-2); box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.14); }
.sync-pill.is-demo .sync-pill__dot { background: var(--accent-3); box-shadow: 0 0 0 4px rgba(245, 184, 74, 0.14); }
.sync-pill.is-error .sync-pill__dot { background: var(--err); box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.16); }
.sync-pill.is-loading .sync-pill__dot { background: var(--accent); animation: pulseDot 1s linear infinite; }

/* ------------------------------------------------------------ */
/* Buttons & controls                                            */
/* ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: linear-gradient(145deg, #171E27, #10161D);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-head);
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-out-xs);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-out-sm); }
.btn:active { transform: translateY(1px); box-shadow: var(--shadow-in-sm); }

.btn svg { width: 17px; height: 17px; }

.btn--primary {
  border-color: rgba(255, 77, 94, 0.45);
  background: linear-gradient(145deg, #4A1220, #2A0A12);
  color: #FFE1E6;
  box-shadow: var(--shadow-out-xs), var(--shadow-glow-brand);
}
.btn--primary:hover {
  background: linear-gradient(145deg, #64182A, #350D18);
  color: #fff;
}

.btn--amber {
  border-color: rgba(245, 184, 74, 0.4);
  background: linear-gradient(145deg, #3A2E12, #231C0C);
  color: #FFDFA6;
  box-shadow: var(--shadow-out-xs), var(--shadow-glow-amber);
}
.btn--amber:hover { background: linear-gradient(145deg, #4C3B17, #2C220F); color: #fff6e2; }

.btn--ghost {
  background: transparent;
  box-shadow: none;
  color: var(--text-2);
}
.btn--ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); box-shadow: none; }
.btn--ghost:active { box-shadow: var(--shadow-in-sm); }

.btn--sm { height: 36px; padding: 0 14px; font-size: 12.5px; }
.btn--block { width: 100%; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, #151B23, #0F141A);
  color: var(--text-2);
  box-shadow: var(--shadow-out-xs);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease),
              color var(--dur) var(--ease);
  flex: 0 0 auto;
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { color: var(--accent); box-shadow: var(--shadow-out-sm); }
.icon-btn:active { transform: translateY(1px); box-shadow: var(--shadow-in-sm); }

.icon-btn.is-busy svg { animation: spin 0.9s linear infinite; }

/* ------------------------------------------------------------ */
/* Page scaffolding                                              */
/* ------------------------------------------------------------ */

.view {
  flex: 1 1 auto;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px var(--gutter) 56px;
  outline: none;
}

.page { display: flex; flex-direction: column; gap: 26px; }

.page__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; justify-content: space-between; }
.page__head h1 { font-size: clamp(24px, 3vw, 32px); }
.page__sub { color: var(--muted); font-size: 14px; max-width: 640px; margin-top: 6px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.tiny { font-size: 11.5px; color: var(--muted); line-height: 1.5; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #04222A;
  font-weight: 600;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------ */
/* Hero                                                          */
/* ------------------------------------------------------------ */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 32px;
  padding: 34px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(34, 211, 238, 0.08), transparent 55%),
    linear-gradient(145deg, #141A22 0%, #0D1218 100%);
  box-shadow: var(--shadow-out);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 100% 4px;
  opacity: 0.5;
  pointer-events: none;
}

.hero__copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; }

.hero__title {
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero__title span {
  background: linear-gradient(100deg, #FF4D5E 0%, #22D3EE 58%, #F5B84A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub { color: var(--text-2); font-size: 15px; max-width: 520px; }

.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

.hero__note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.hero__note svg { width: 15px; height: 15px; color: var(--ok); flex: 0 0 auto; }

.hero__art { position: relative; display: grid; place-items: center; min-height: 300px; z-index: 1; }

.orb {
  position: relative;
  width: min(320px, 76vw);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 34% 28%, #1D2734 0%, #0C1117 68%);
  box-shadow: var(--shadow-out), inset 0 0 60px rgba(34, 211, 238, 0.08);
}

.orb__ring {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px dashed rgba(34, 211, 238, 0.32);
  animation: spin 30s linear infinite;
}
.orb__ring--2 {
  inset: 19%;
  border-style: solid;
  border-color: rgba(56, 189, 248, 0.22);
  animation-duration: 20s;
  animation-direction: reverse;
}
.orb__ring--3 {
  inset: 31%;
  border-color: rgba(245, 184, 74, 0.22);
  animation-duration: 14s;
}

.orb__core {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.orb__core svg { width: 44px; height: 44px; color: var(--accent); filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.5)); }
.orb__core strong { font-family: var(--font-head); font-size: 26px; letter-spacing: -0.02em; }
.orb__core small { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.22em; color: var(--muted); text-transform: uppercase; }

.orb__tag {
  position: absolute;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(20, 26, 34, 0.92);
  box-shadow: var(--shadow-out-xs);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.orb__tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.orb__tag--tl { top: 8%; left: -4%; }
.orb__tag--br { bottom: 12%; right: -6%; }
.orb__tag--bl { bottom: 32%; left: -10%; }

/* ------------------------------------------------------------ */
/* Chips, tags, pills                                            */
/* ------------------------------------------------------------ */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}
.chip svg { width: 13px; height: 13px; }
.chip--cyan { color: #A5F3FC; border-color: rgba(34, 211, 238, 0.3); background: rgba(34, 211, 238, 0.1); }
.chip--violet { color: #BAE6FD; border-color: rgba(56, 189, 248, 0.3); background: rgba(56, 189, 248, 0.1); }
.chip--amber { color: #FDE6B0; border-color: rgba(245, 184, 74, 0.3); background: rgba(245, 184, 74, 0.1); }
.chip--ok { color: #A7F3D0; border-color: rgba(52, 211, 153, 0.3); background: rgba(52, 211, 153, 0.1); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}

.tag--new {
  background: rgba(52, 211, 153, 0.14);
  color: #6EE7B7;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

/* ------------------------------------------------------------ */
/* Panels & stats                                                */
/* ------------------------------------------------------------ */

.panel {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: linear-gradient(145deg, #141A22, #0E131A);
  box-shadow: var(--shadow-out-sm);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  position: relative;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: linear-gradient(145deg, #161D26, #0F141A);
  box-shadow: var(--shadow-out-sm);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-out); }

.stat__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 77, 94, 0.12);
  color: var(--accent);
  box-shadow: var(--shadow-in-sm);
}
.stat__icon svg { width: 19px; height: 19px; }
.stat__icon--violet { background: rgba(34, 211, 238, 0.12); color: var(--accent-2); }
.stat__icon--amber { background: rgba(245, 184, 74, 0.12); color: var(--accent-3); }
.stat__icon--green { background: rgba(52, 211, 153, 0.12); color: var(--ok); }

.stat__value {
  font-family: var(--font-head);
  font-size: clamp(24px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat__label {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat__hint { margin-top: 8px; font-size: 12px; color: var(--text-2); }

/* ------------------------------------------------------------ */
/* Sections                                                      */
/* ------------------------------------------------------------ */

.section { display: flex; flex-direction: column; gap: 14px; }

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.section__head h2 { font-size: 19px; }
.section__head .link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
}
.section__head .link:hover { color: #7DEBFA; }
.section__head .link svg { width: 14px; height: 14px; }

/* Category cards */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: linear-gradient(145deg, #151C25, #0F141A);
  box-shadow: var(--shadow-out-sm);
  text-align: left;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.cat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.28);
  box-shadow: var(--shadow-out), 0 0 22px rgba(34, 211, 238, 0.1);
}
.cat-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(34, 211, 238, 0.1);
  color: var(--accent);
  box-shadow: var(--shadow-in-sm);
}
.cat-card__icon svg { width: 21px; height: 21px; }
.cat-card__name {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cat-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Latest uploads */
.latest { display: flex; flex-direction: column; }

.latest__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-xs);
  transition: background var(--dur) var(--ease);
  text-align: left;
  width: 100%;
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
}
.latest__item:last-child { border-bottom: 0; }
.latest__item:hover { background: rgba(255, 255, 255, 0.03); }

.latest__body { min-width: 0; flex: 1 1 auto; }
.latest__name {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.latest__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
}
.latest__meta .sep { opacity: 0.4; }
.latest__cat {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.latest__go { color: var(--muted); display: grid; place-items: center; }
.latest__go svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------ */
/* File type icons                                               */
/* ------------------------------------------------------------ */

.file-icon {
  --tone: #8A97A8;
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 13px;
  color: var(--tone);
  background: rgba(255, 255, 255, 0.035);
  background: color-mix(in srgb, var(--tone) 13%, transparent);
  box-shadow: var(--shadow-in-sm), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.file-icon svg { width: 20px; height: 20px; }
.file-icon--lg { width: 56px; height: 56px; border-radius: var(--radius-sm); }
.file-icon--lg svg { width: 26px; height: 26px; }

.file-icon--firmware { --tone: var(--accent); }
.file-icon--dump { --tone: var(--accent-2); }
.file-icon--loader { --tone: var(--accent-3); }
.file-icon--tool { --tone: var(--ok); }
.file-icon--driver { --tone: #60A5FA; }
.file-icon--guide { --tone: #F9A8D4; }
.file-icon--archive { --tone: #94A3B8; }
.file-icon--image { --tone: #C4B5FD; }
.file-icon--file { --tone: #8A97A8; }

/* ------------------------------------------------------------ */
/* Toolbar (library)                                             */
/* ------------------------------------------------------------ */

.toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: linear-gradient(145deg, #131A22, #0E1319);
  box-shadow: var(--shadow-out-sm);
}

.toolbar__row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }

.chip-btn {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #161D26, #10161D);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  box-shadow: var(--shadow-out-xs);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.chip-btn:hover { color: var(--text); transform: translateY(-1px); }
.chip-btn.is-active {
  color: #FFDDE2;
  border-color: rgba(255, 77, 94, 0.45);
  background: linear-gradient(145deg, #3A1019, #22080E);
  box-shadow: var(--shadow-in-sm), 0 0 18px rgba(255, 77, 94, 0.16);
}
.chip-btn .count { margin-left: 6px; font-family: var(--font-mono); font-size: 10px; opacity: 0.7; }

.select {
  height: 38px;
  padding: 0 34px 0 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background-color: #121821;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 16px, calc(100% - 12px) 16px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  color: var(--text-2);
  font-size: 12.5px;
  appearance: none;
  box-shadow: var(--shadow-in-sm);
  cursor: pointer;
}
.select:focus { outline: none; border-color: rgba(34, 211, 238, 0.42); box-shadow: var(--shadow-in-sm), var(--shadow-glow-cyan); }

.segmented {
  display: inline-flex;
  padding: 3px;
  gap: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: #0E1319;
  box-shadow: var(--shadow-in-sm);
}
.segmented button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 30px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.segmented button svg { width: 16px; height: 16px; }
.segmented button.is-active {
  color: var(--accent);
  background: linear-gradient(145deg, #1A222C, #121820);
  box-shadow: var(--shadow-out-xs);
}

.result-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}
.result-meta strong { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------ */
/* File cards & rows                                             */
/* ------------------------------------------------------------ */

.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(292px, 1fr));
  gap: 14px;
}

.file-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: linear-gradient(145deg, #151C25, #0F141A);
  box-shadow: var(--shadow-out-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  animation: fadeUp 0.4s var(--ease) both;
}
.file-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.26);
  box-shadow: var(--shadow-out), 0 0 24px rgba(34, 211, 238, 0.08);
}

.file-card__top { display: flex; align-items: flex-start; gap: 12px; }

.file-card__name {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.file-card__path {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }

.file-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
}
.file-card__meta .sep { opacity: 0.4; }

.file-card__actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}
.file-card__actions .btn { flex: 1 1 auto; }
.file-card__actions .icon-btn { width: 36px; height: 36px; }

.file-card__new {
  position: absolute;
  top: 12px;
  right: 12px;
}

/* List view */
.file-list {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: linear-gradient(145deg, #141A22, #0E131A);
  box-shadow: var(--shadow-out-sm);
  overflow: hidden;
}

.file-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 150px 110px 96px;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background var(--dur) var(--ease);
  animation: fadeUp 0.35s var(--ease) both;
}
.file-row:last-child { border-bottom: 0; }
.file-row:hover { background: rgba(255, 255, 255, 0.03); }

.file-row__name { min-width: 0; }
.file-row__name .name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-row__name .path {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-row__col {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.file-row__actions { display: flex; gap: 6px; justify-content: flex-end; }
.file-row__actions .icon-btn { width: 32px; height: 32px; }
.file-row__actions .icon-btn svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------ */
/* Tables                                                        */
/* ------------------------------------------------------------ */

.table-wrap {
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: linear-gradient(145deg, #141A22, #0E131A);
  box-shadow: var(--shadow-out-sm);
  overflow-x: auto;
}

.table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--dur) var(--ease); }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.table .mono { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-2); }
.table .row-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* ------------------------------------------------------------ */
/* Accordion                                                     */
/* ------------------------------------------------------------ */

.accordion { display: flex; flex-direction: column; gap: 10px; }

.acc__item {
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: linear-gradient(145deg, #141A22, #0E131A);
  box-shadow: var(--shadow-out-sm);
  overflow: hidden;
}

.acc__head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
}
.acc__head:hover { color: var(--accent); }

.acc__index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  width: 26px;
  flex: 0 0 auto;
}

.acc__chev {
  margin-left: auto;
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: transform var(--dur) var(--ease);
}
.acc__chev svg { width: 16px; height: 16px; }
.acc__item.is-open .acc__chev { transform: rotate(180deg); }

.acc__body {
  padding: 0 18px 18px 56px;
  color: var(--text-2);
  font-size: 13.5px;
}
.acc__body p + p { margin-top: 10px; }
.acc__body ul { margin: 8px 0 0; padding-left: 18px; }
.acc__body li { margin-bottom: 6px; }
.acc__body code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(34, 211, 238, 0.1);
  color: #A5F3FC;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ------------------------------------------------------------ */
/* Contact cards                                                 */
/* ------------------------------------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: linear-gradient(145deg, #151C25, #0F141A);
  box-shadow: var(--shadow-out-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-out); }
.contact-card h3 { font-size: 15px; }
.contact-card p { font-size: 13px; color: var(--muted); }
.contact-card .btn { margin-top: auto; align-self: flex-start; }

/* ------------------------------------------------------------ */
/* Banners                                                       */
/* ------------------------------------------------------------ */

.banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 184, 74, 0.28);
  background: rgba(245, 184, 74, 0.07);
  color: #FBE3B4;
  font-size: 12.5px;
  line-height: 1.5;
}
.banner svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }
.banner strong { color: #FDE6B0; }
.banner--cache { border-color: rgba(56, 189, 248, 0.28); background: rgba(56, 189, 248, 0.07); color: #BAE6FD; }
.banner--error { border-color: rgba(248, 113, 113, 0.3); background: rgba(248, 113, 113, 0.08); color: #FECACA; }

/* ------------------------------------------------------------ */
/* Empty & skeleton                                              */
/* ------------------------------------------------------------ */

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 54px 24px;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.015);
  text-align: center;
}
.empty__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  box-shadow: var(--shadow-in-sm);
}
.empty__icon svg { width: 26px; height: 26px; }
.empty h3 { font-size: 16px; }
.empty p { font-size: 13px; color: var(--muted); max-width: 380px; }

.skeleton {
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: linear-gradient(100deg, #141A22 20%, #1E2632 40%, #141A22 60%);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
}
.skeleton--card { height: 176px; }
.skeleton--line { height: 14px; border-radius: 6px; }

.sk-tile { height: 128px; }
.sk-row { height: 64px; }

/* ------------------------------------------------------------ */
/* Modal                                                         */
/* ------------------------------------------------------------ */

.modal[hidden] { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 9, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 0.2s var(--ease) both;
}

.modal__panel {
  position: relative;
  width: min(580px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(155deg, #171E27 0%, #0E131A 100%);
  box-shadow: var(--shadow-out), 0 0 40px rgba(34, 211, 238, 0.08);
  animation: popIn 0.24s var(--ease) both;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
}

.detail__head { display: flex; gap: 14px; padding-right: 40px; }
.detail__head h2 {
  font-size: 17px;
  line-height: 1.35;
  word-break: break-word;
}
.detail__sub { margin-top: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

.detail__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}
.detail__cell {
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid var(--line-soft);
}
.detail__cell span {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.detail__cell strong { font-size: 12.5px; font-weight: 600; color: var(--text); word-break: break-word; }

.detail__path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 18px;
}
.detail__path .sep { opacity: 0.45; }

.detail__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.detail__note { margin-top: 16px; font-size: 11.5px; color: var(--muted); line-height: 1.55; }

/* ------------------------------------------------------------ */
/* Toasts                                                        */
/* ------------------------------------------------------------ */

.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(20, 26, 34, 0.97);
  box-shadow: var(--shadow-out-sm);
  color: var(--text);
  font-size: 12.5px;
  animation: toastIn 0.28s var(--ease) both;
  pointer-events: auto;
  max-width: 320px;
}
.toast.is-out { animation: toastOut 0.24s var(--ease) both; }
.toast svg { width: 16px; height: 16px; flex: 0 0 auto; }
.toast--ok svg { color: var(--ok); }
.toast--err svg { color: var(--err); }
.toast--info svg { color: var(--accent); }

/* ------------------------------------------------------------ */
/* Footer                                                        */
/* ------------------------------------------------------------ */

.footer {
  margin-top: auto;
  padding: 34px var(--gutter) 28px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 14, 19, 0) 0%, rgba(8, 11, 15, 0.9) 100%);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.8fr));
  gap: 26px;
  max-width: var(--container);
  margin: 0 auto 24px;
}

.footer__brand { display: flex; gap: 12px; align-items: flex-start; }
.footer__brand img { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; }
.footer__brand strong { font-family: var(--font-head); letter-spacing: 0.12em; font-size: 13px; }
.footer__brand p { margin-top: 6px; max-width: 300px; }

.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col h3 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.footer__col a { font-size: 12.5px; color: var(--text-2); transition: color var(--dur) var(--ease); }
.footer__col a:hover { color: var(--accent); }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ------------------------------------------------------------ */
/* Bottom nav (mobile)                                           */
/* ------------------------------------------------------------ */

.bottom-nav {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: var(--z-bottom-nav);
  padding: 8px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(15, 20, 26, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-out-sm);
}

.bottom-nav__item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 4px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.bottom-nav__item svg { width: 20px; height: 20px; }
.bottom-nav__item.is-active {
  color: var(--accent);
  background: linear-gradient(145deg, #1A222C, #121820);
  box-shadow: var(--shadow-out-xs);
}

/* ------------------------------------------------------------ */
/* Animations                                                    */
/* ------------------------------------------------------------ */

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(8px) scale(0.97); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.35); }
  50% { box-shadow: 0 0 0 5px rgba(52, 211, 153, 0); }
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -60% 0; }
}

/* ------------------------------------------------------------ */
/* Utilities                                                     */
/* ------------------------------------------------------------ */

.only-mobile { display: none !important; }
.mt-0 { margin-top: 0; }
.hidden { display: none !important; }
.spacer { flex: 1 1 auto; }

.file-card__body { min-width: 0; flex: 1 1 auto; }

.req-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.55;
}
.req-list li::marker { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------ */
/* Hero logo showcase                                            */
/* ------------------------------------------------------------ */

.hero__art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 340px;
}

.logo-stage {
  position: relative;
  width: min(350px, 80vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.logo-stage__halo {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%,
    rgba(255, 77, 94, 0.20) 0%,
    rgba(34, 211, 238, 0.12) 52%,
    transparent 74%);
  filter: blur(8px);
}

.logo-stage__ring { position: absolute; border-radius: 50%; }

.logo-stage__ring--1 {
  inset: 0;
  border: 1px dashed rgba(255, 77, 94, 0.30);
  animation: spin 38s linear infinite;
}

.logo-stage__ring--2 {
  inset: 8%;
  border: 1px solid rgba(34, 211, 238, 0.16);
  box-shadow: inset 0 0 30px rgba(34, 211, 238, 0.06);
}

.logo-stage__ring--3 {
  inset: -4%;
  background: conic-gradient(from 0deg,
    transparent 0 16%,
    rgba(34, 211, 238, 0.55) 16% 20%,
    transparent 20% 38%,
    rgba(255, 77, 94, 0.5) 38% 43%,
    transparent 43% 66%,
    rgba(245, 184, 74, 0.45) 66% 70%,
    transparent 70% 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: spin 24s linear infinite reverse;
}

.logo-stage__scan {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  overflow: hidden;
  opacity: 0.6;
  pointer-events: none;
  -webkit-mask: radial-gradient(circle, #000 96%, transparent 100%);
  mask: radial-gradient(circle, #000 96%, transparent 100%);
}

.logo-stage__scan::before {
  content: "";
  position: absolute;
  left: -30%;
  right: -30%;
  height: 32%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(34, 211, 238, 0.16) 50%,
    transparent 100%);
  animation: logoScan 5.4s linear infinite;
}

.logo-stage__bracket {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255, 77, 94, 0.42);
  opacity: 0.9;
}
.logo-stage__bracket--tl {
  top: 1%; left: 1%;
  border-right: 0; border-bottom: 0;
  border-top-left-radius: 10px;
}
.logo-stage__bracket--tr {
  top: 1%; right: 1%;
  border-left: 0; border-bottom: 0;
  border-top-right-radius: 10px;
}
.logo-stage__bracket--bl {
  bottom: 1%; left: 1%;
  border-right: 0; border-top: 0;
  border-bottom-left-radius: 10px;
}
.logo-stage__bracket--br {
  bottom: 1%; right: 1%;
  border-left: 0; border-top: 0;
  border-bottom-right-radius: 10px;
}

.logo-slider {
  position: absolute;
  inset: 18%;
  display: grid;
  place-items: center;
}

.logo-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  animation: logoFade 15s var(--ease) infinite;
}

.logo-slide:nth-child(2) { animation-delay: 5s; }
.logo-slide:nth-child(3) { animation-delay: 10s; }

.logo-slide img {
  width: min(210px, 100%);
  max-height: 100%;
  height: auto;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.65))
          drop-shadow(0 0 20px rgba(255, 77, 94, 0.22));
}

.logo-slide--wide img {
  width: min(252px, 100%);
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.7))
          drop-shadow(0 0 26px rgba(34, 211, 238, 0.3));
}

.logo-slide figcaption {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}

.hero__art-meta {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Compact brand for mobile top bar */
.topbar__brand { display: none; }

@media (max-width: 1024px) {
  .topbar__brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }
  .topbar__brand img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    filter: drop-shadow(0 0 12px rgba(255, 77, 94, 0.4));
  }
}

/* ------------------------------------------------------------ */
/* Showcase animations                                           */
/* ------------------------------------------------------------ */

@keyframes logoFade {
  0% { opacity: 0; transform: translateY(12px) scale(0.95); }
  2%, 27% { opacity: 1; transform: none; }
  33.33%, 100% { opacity: 0; transform: translateY(-12px) scale(0.95); }
}

@keyframes logoScan {
  0% { top: -40%; }
  100% { top: 120%; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-slide {
    animation: none !important;
    opacity: 0;
  }
  .logo-slide:first-child { opacity: 1; }
  .logo-stage__ring--1,
  .logo-stage__ring--3,
  .logo-stage__scan::before { animation: none !important; }
}

/* ------------------------------------------------------------ */
/* Reseller network                                              */
/* ------------------------------------------------------------ */

.reseller-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}

.reseller-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: linear-gradient(145deg, #151C25, #0F141A);
  box-shadow: var(--shadow-out-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.reseller-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-out); }

.reseller-card.is-featured {
  border-color: rgba(255, 77, 94, 0.35);
  box-shadow: var(--shadow-out-sm), 0 0 26px rgba(255, 77, 94, 0.12);
}

.reseller-card.is-open {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.014);
  box-shadow: none;
}
.reseller-card.is-open:hover { transform: none; }

.reseller-card__head { display: flex; align-items: center; gap: 12px; }
.reseller-card .tag { white-space: nowrap; }
.reseller-card__id { min-width: 0; flex: 1 1 auto; }
.reseller-card__id h3 { font-size: 15px; }

.reseller-card__area {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
}
.reseller-card__hours {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
}
.reseller-card__hint { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.reseller-card__actions { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
.reseller-card__actions .btn { flex: 1 1 auto; }

.avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #FFD9DE;
  background: linear-gradient(145deg, #3A1019, #1C0A10);
  border: 1px solid rgba(255, 77, 94, 0.35);
  box-shadow: var(--shadow-in-sm), 0 0 18px rgba(255, 77, 94, 0.16);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar--lg { width: 62px; height: 62px; font-size: 19px; }

.reseller-join {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
