/* ── Main content ───────────────────────────────────────────────── */

.main-content {
  display: flex;
  align-items: flex-start;
  flex: 1;
  overflow: hidden;
  max-width: 1400px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* ── Sidebar ────────────────────────────────────────────────────── */

.sidebar {
  width: 270px;
  flex-shrink: 0;
  height: 100%;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background-color: rgba(12, 14, 13, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Sidebar: Tech Support button ───────────────────────────────── */

.sidebar-support-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background-color: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-style 0.15s, border-color 0.15s, background-color 0.15s;
  text-align: left;
}

.sidebar-support-btn:hover {
  border-color: var(--accent-color);
  border-style: solid;
  background-color: #162320;
}

.sidebar-support-btn + .sidebar-support-btn {
  margin-top: 8px;
}

.sidebar-support-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.sidebar-support-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-support-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sidebar-support-hint {
  font-size: 0.72rem;
  color: var(--accent-color);
  font-weight: 600;
}

.sidebar-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 16px 0;
}

/* ── Upgrade modal ──────────────────────────────────────────────── */

.upgrade-dialog {
  max-width: 480px;
}

.upgrade-info-box {
  background-color: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 14px;
}

.upgrade-info-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.upgrade-info-list {
  padding-left: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.upgrade-info-list a {
  color: var(--accent-color);
}

.upgrade-rebuild-note {
  font-style: italic;
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* ── Tiles area ─────────────────────────────────────────────────── */

#tiles-area {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  padding: 24px 20px 48px;
  min-width: 0;
}

/* ── Category sections ──────────────────────────────────────────── */

.category-section {
  margin-bottom: 32px;
}

.section-header {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 4px;
  padding-left: 4px;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.tiles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ── Empty state ────────────────────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-dim);
}

.empty-state p {
  font-size: 1rem;
  margin-bottom: 8px;
}
