@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700;800;900&family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
  --bg: #030607;
  --bg-card: #081415;
  --cyan: #22e6f2;
  --cyan-strong: #7bf5ff;
  --cyan-soft: #0fb8c9;
  --cyan-dim: rgba(34, 230, 242, 0.14);
  --cyan-border: rgba(45, 212, 232, 0.28);
  --text: #eaf9fb;
  --text-dim: #93bcc0;
  --text-faint: #5c7d80;
  --danger: #ff5470;
  --ok: #46f0a6;
  --radius: 10px;
  --font-head: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 40% at 15% -5%, rgba(34,230,242,.16), transparent 60%),
    radial-gradient(ellipse 50% 35% at 100% 10%, rgba(34,230,242,.10), transparent 60%),
    linear-gradient(180deg, #030607 0%, #030a0b 100%);
}
.bg-fx::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34,230,242,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,230,242,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: .5;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 6, 7, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(34,230,242,.15);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(34,230,242,.6));
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 1.5px;
  color: #fff;
  text-transform: uppercase;
}
.brand-text em {
  font-style: normal;
  color: var(--cyan);
  margin-left: 6px;
  text-shadow: 0 0 14px rgba(34,230,242,.7);
}
.header-count {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan-strong);
  border: 1px solid var(--cyan-border);
  background: var(--cyan-dim);
  padding: 7px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- category tabs ---------- */
main { padding: 40px 0 100px; }

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.category-tab {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(34,230,242,.2);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all .18s;
}
.category-tab:hover { color: #fff; border-color: var(--cyan-border); }
.category-tab.active {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  color: var(--cyan-strong);
  box-shadow: 0 0 18px rgba(34,230,242,.2);
}

/* ---------- toolbar ---------- */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  position: sticky;
  top: 73px;
  z-index: 10;
  background: rgba(3, 6, 7, .92);
  backdrop-filter: blur(8px);
  padding: 16px 0;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 240px;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid rgba(34,230,242,.18);
  border-radius: 8px;
  padding: 12px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.search-box:focus-within {
  border-color: var(--cyan-border);
  box-shadow: 0 0 0 3px rgba(34,230,242,.1);
}
.search-box svg { color: var(--text-faint); flex-shrink: 0; }
.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15.5px;
}
.search-box input::placeholder { color: var(--text-faint); }
.result-count {
  font-size: 13.5px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}

/* ---------- grid ---------- */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.item-card {
  background: linear-gradient(160deg, var(--bg-card), #050b0c);
  border: 1px solid rgba(34,230,242,.12);
  border-radius: 8px;
  padding: 14px 16px;
  transition: border-color .15s, transform .15s;
}
.item-card:hover {
  border-color: var(--cyan-border);
  transform: translateY(-2px);
}
.item-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 12px;
}
.item-icon {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 8px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.item-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.item-icon.no-icon {
  color: var(--cyan-soft);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 26px;
}
.item-icon.no-icon::after { content: attr(data-fallback); }
.item-card-label {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.item-card-id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  background: rgba(34,230,242,.05);
  border: 1px solid rgba(34,230,242,.15);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--cyan-soft);
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12.5px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.item-card-id span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item-card-id:hover { background: rgba(34,230,242,.12); border-color: var(--cyan-border); color: var(--cyan-strong); }
.item-card-id.copied { background: rgba(70,240,166,.12); border-color: rgba(70,240,166,.4); color: var(--ok); }
.item-card-id.copy-failed { background: rgba(255,84,112,.12); border-color: rgba(255,84,112,.4); color: var(--danger); }
.item-card-id svg { flex-shrink: 0; }

.items-empty {
  text-align: center;
  color: var(--text-faint);
  padding: 60px 0;
  font-size: 16px;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid rgba(34,230,242,.12);
  padding: 24px 0;
  color: var(--text-faint);
  font-size: 13.5px;
  text-align: center;
}

@media (max-width: 640px) {
  .toolbar { top: 0; }
  .items-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .header-inner { flex-wrap: wrap; }
}
