:root {
  --bg: #0b1220;
  --panel: rgba(255, 255, 255, .03);
  --border: rgba(255, 255, 255, .10);
  --text: #eaf0ff;
  --muted: rgba(234, 240, 255, .65);
  --primary: #4ea1ff;
  --primary2: #7c5cff;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --radius: 14px;
  --gap: 16px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  overflow-y: scroll;
  line-height: 1.5;
  background:
    radial-gradient(900px 600px at 20% -10%, rgba(78, 161, 255, .18), transparent 60%),
    radial-gradient(900px 500px at 95% 10%, rgba(124, 92, 255, .14), transparent 55%),
    var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 16px;
  align-items: center;
  height: 84px;
  padding: 0 18px;
  background: rgba(11, 18, 32, .72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
}

.brand {
  display: flex;
  gap: 32px;
  align-items: center;
}

.logo-image {
  height: 48px;
  width: auto;
  min-width: 40px;
  display: block;
  object-fit: contain;
}

.brand-title {
  font-weight: 800;
  letter-spacing: .2px;
}

.brand-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 400;
}

.search {
  margin-left: auto;
  width: min(720px, 100%);
}

.search input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  outline: none;
}

.search input::placeholder {
  color: rgba(234, 240, 255, .55);
}

.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  padding: 16px;
}

.sidebar {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  height: calc(100vh - 116px);
  position: sticky;
  top: 100px;
}

.sidebar-title {
  font-weight: 800;
  margin-bottom: 10px;
}

.categories {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--muted);
  border: 1px solid transparent;
  user-select: none;
}

.cat:hover {
  background: rgba(255, 255, 255, .03);
}

.cat.active {
  color: var(--text);
  background: rgba(78, 161, 255, .12);
  border-color: rgba(78, 161, 255, .25);
}

.badge {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--border);
  color: var(--muted);
}

.content {
  min-height: calc(100vh - 116px);
}

.content-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 4px 14px 4px;
}

.crumb {
  color: var(--muted);
}

.btn-ghost {
  margin-left: auto;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  line-height: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
  height: 40px;
}

/* ===== Tiles grid ===== */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--gap);
}

/* ===== Tile card ===== */
.tile {
  position: relative;
  padding: 18px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
  cursor: pointer;
}

.tile:hover {
  transform: translateY(-2px);
  border-color: rgba(78, 161, 255, .28);
  background: rgba(78, 161, 255, .06);
}

/* ===== Bigger icon ===== */
.tile-icon {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 20px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  padding: 16px;
  display: block;
  margin: 0 auto 14px auto;
  transition: opacity 0.2s ease;
}

.tile:hover .tile-icon {
  opacity: 0.33;
}

/* ===== Title centered ===== */
.tile-title {
  text-align: center;
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 17px;
}

/* ===== Description hidden; show when hovered over icon ===== */
.tile-desc {
  position: absolute;
  top: 18px;
  left: 16px;
  right: 16px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 8px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
}

.tile:hover .tile-desc {
  opacity: 1;
}

/* ===== Tags ===== */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 10px;
}

.tag {
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(124, 92, 255, .15);
  border: none;
  color: #b7a4ff;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hidden {
  display: none !important;
}